摘要:
Sticks Time Limit: 1000MSMemory Limit: 10000K Total Submissions: 93302Accepted: 20906 Description George took sticks of the same length and cut them randomly until all parts became at most 50 units lo... 阅读全文
摘要:
Prime PathTime Limit: 1000MSMemory Limit:65536KTotal Submissions: 6713Accepted:3808DescriptionThe ministers of the cabinet were quite upset by the message from the Chief of Security stating that they would all have to change the four-digit room numbers on their offices. — It is a matter of security 阅读全文
摘要:
PotsTime Limit: 1000MSMemory Limit:65536KTotal Submissions: 6087Accepted: 2563Special JudgeDescriptionYou are given two pots, having the volume of A and Bliters respectively. The following operations can be performed:FILL(i) fill the pot i (1 ≤ i ≤ 2) from the tap;DROP(i) empty the pot ito the drain 阅读全文
摘要:
Find The MultipleTime Limit: 1000MSMemory Limit:10000KTotal Submissions: 10604Accepted: 4373Special JudgeDescriptionGiven a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 and 1. You may assume that n is not greater th 阅读全文
摘要:
Knight Moves Time Limit: 1000MSMemory Limit: 65536K Total Submissions: 7775Accepted: 4531 Description A friend of you is doing research on the Traveling Knight Problem (TKP) where you are to find the ... 阅读全文
摘要:
declaration and definitionAny variable can be defined for only once. On the contrary, declaration is different. Extern declaration is not definition and does not allocate memory for the variable. 2. cin and getlinegetline ignore space, so in case I wanna input something like space inside my string, 阅读全文