← Back to the problem

Kazakhstan FAIO 2024 · Statement

A. Choosing rocket

Formatted by IOAI Training from the original (BeksultanSagyndyk/faio-tasks, licence Apache-2.0). The original is authoritative.

https://contest.yandex.ru/contest/71291/problems/A/

Time limit: 1 second Memory limit: 64 MB Input: standard input or input.txt Output: standard output or output.txt

The team is preparing to fly on a business trip to a space station. They need to choose k rocket components out of n. In how many ways can they do this? The order of selection does not matter.

Two natural numbers n and k are given. Output the answer to the problem.