B - Gold miner Time Limit:2000MS Memory Limit:32768KB Description Homelesser likes playing Gold miners in class. He has to pay much attention to the teacher to avoid being noticed. So he always lose the game. After losing many times, he want…
B. Modulo Sum Time Limit: 1 Sec Memory Limit: 256 MB 题目连接 http://codeforces.com/contest/577/problem/B Description You are given a sequence of numbers a1, a2, ..., an, and a number m. Check if it is possible to choose a non-empty subsequence aij such…
In Action Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4764 Accepted Submission(s): 1569 Problem Description Since 1945, when the first nuclear bomb was exploded by the Manhattan Project t…
题目描述 翰的奶牛玩游戏成瘾!本来约翰是想把她们拖去电击治疗的,但是他发现奶牛们在玩游戏后生产 了更多的牛奶,也就支持它们了. 但是,奶牛在选择游戏平台上的分歧很大:有些奶牛想买 Xbox 360 来跑<光晕 3>:有的奶牛想 要任天堂 Wii 来跑<明星大乱斗 X>:还有奶牛想要在 PlayStation 3 上玩<潜龙谍影 4>.约翰只有 V 元钱,不够多,要做一些取舍才行. 已知市面上有 K 种游戏平台,如果想玩第 i 种平台的游戏,必须先买一台该平台的游戏机,价…