The factorial of a number
Given two numbers
Input Specification
The standard input contains 10 datasets. Each dataset contains two integers
For the first 4 cases,
For the first 7 cases,
Output Specification
For each dataset, output the minimum value of
Sample Input (Five Datasets Shown)
Copy
2 2
2 3
3 1
4 2
10 10
Sample Output
Copy
4
4
3
6
45
Educational Computing Organization of Ontario - statements, test data and other materials can be found at ecoocs.org
Comments
that's the longest time limit I've ever seen