摘要:
Be the Winner Problem Description Let's consider m apples divided into n groups. Each group contains no more than 100 apples, arranged in a line. You 阅读全文
摘要:
S-Nim Problem Description Arthur and his sister Caroll have been playing a game called Nim for some time now. Nim is played as follows: The starting p 阅读全文
摘要:
K-th Number Description You are working for Macrohard company in data structures department. After failing your previous task about key insertion you 阅读全文
摘要:
A. Remove Duplicates Petya has an array aa consisting of nn integers. He wants to remove duplicate (equal) elements. Petya wants to leave only the rig 阅读全文
摘要:
A. Aramic script In Aramic language words can only represent objects. Words in Aramic have special properties: A word is a root if it does not contain 阅读全文
摘要:
A. Wrong Subtraction A. Wrong Subtraction Little girl Tanya is learning how to decrease a number by one, but she does it wrong with a number consistin 阅读全文
摘要:
题目描述 这是一个加强版的斐波那契数列。 给定递推式 求F(n)的值,由于这个值可能太大,请对109+7取模。 输入描述: 第一行是一个整数T(1 ≤ T ≤ 1000),表示样例的个数。以后每个样例一行,是一个整数n(1 ≤ n ≤ 1018)。 输出描述: 每个样例输出一行,一个整数,表示F(n 阅读全文
摘要:
Kiki & Little Kiki 2 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2915 Accepted Submission(s): 阅读全文
摘要:
Chinese Rings Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1221 Accepted Submission(s): 722 Pr 阅读全文
摘要:
A. Plant Dwarfs have planted a very interesting plant, which is a triangle directed "upwards". This plant has an amusing feature. After one year a tri 阅读全文