摘要:Problem Description Given an integer N(0 ≤ N ≤ 10000), your task is to calculate N! Input One N in one line, process to the end of file. Output For ea
阅读全文
摘要:Problem Description The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit the
阅读全文
摘要:Problem Description A simple mathematical formula for e iswhere n is allowed to go to infinity. This can actually yield very accurate approximations o
阅读全文
摘要:Problem Description The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at w
阅读全文
摘要:Problem Description Have you ever played quoit in a playground? Quoit is a game in which flat rings are pitched at some toys, with all the toys encirc
阅读全文
摘要:Problem Description A number sequence is defined as follows:f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7.Given A, B, and n, you are
阅读全文
摘要:Problem Description Contest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite time is gues
阅读全文