For each case, print the case number and the minimum possible value of c. If no ...
In a 2D plane N persons are standing and each of them has a gun in his hand. The...
It is 2012, and it's a leap year. So there is a "February 29" in this year, whic...
For each case, output the case number and the probability in 'p/q' form where p ...
Given a set of digits S, and an integer n, you have to find how many n-digit int...
The people of Mohammadpur have decided to paint each of their houses red, green,...
You are given N sticks having distinct lengths; you have to form some triangles ...
For each case, print the case number and the solution in summation of factorial ...
We define b is a Divisor of a number a if a is divisible by b. So, the divisors ...
For each case, print the case number and the area of the place where the diamond...
For each case, print the case number and the total numbers in the sequence betwe...
For each case, print the case number and three integers where the first two shou...
For each case, print the case number and the three leading digits (most signific...
Factorial of an integer is defined by the following function
Sometimes some mathematical results are hard to believe. One of the common probl...
Time Limit: 1 Sec Memory Limit: 128 MB Submit: 197 Solved: 46 Su...
逆元等会穿插在Lucas定理里面再说,可能我现在做题还少,理解的不够透彻,巨巨们看了给点指导。
For each case, output the case number and the desired value. Since the result ca...