摘要:
1370 - Bi-shoe and Phi-shoeTime Limit: 2 second(s)Memory Limit: 32 MBBamboo Pole-vault is a massively popular sport in Xzhiland.And Master Phi-shoe is... 阅读全文
摘要:
再简单说明一下题意,规定一开始按钮状态为0 0 0 0 0 0,输入终点状态,求最少的操作步数,对于每个按钮,有以下规定:按钮①:可以任意想顺时针或者逆时针旋转,一次转动一格按钮②:当6个旋钮的数字中奇数偶数个数为相同时才能转动,向顺时针或者逆时针转动一格按钮③:只能向逆时针方向转动,一次转动7格。... 阅读全文
摘要:
欧拉函数: 欧拉函数定义: 对于正整数n,欧拉函数Euler(n)是1到n-1中与n互质的数的个数,特别的,Euler(1) = 1,若n为质数则有 Euler(n) = n - 1 欧拉函数的两种求法: 1.由定义和常识可以知道对于任意一个素数n有 Euler(n) = n - 1,对于m = n... 阅读全文
摘要:
红包是一个心灵手巧的男孩子。今天是万圣节,红包正在家里制作南瓜灯。这时候一群熊孩子们敲开了红包家的门,他们高呼着“不用给糖,只要捣蛋”的口号把红包的南瓜灯弄坏了。这让红包很难过,于是他打算把这些被弄坏的南瓜灯做成其他的工艺品。红包把它的南瓜灯划分成了 n×m 的网格,并用 (x,y) 表示第 x 行... 阅读全文
摘要:
Count the stringTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 6970Accepted Submission(s): 3229Pr... 阅读全文
摘要:
Simpsons’ Hidden TalentsTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5061Accepted Submission(s)... 阅读全文
摘要:
RobberiesTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 17647Accepted Submission(s): 6516Problem ... 阅读全文
摘要:
Blue JeansTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 15090Accepted: 6696DescriptionThe Genographic Project is a research partnership bet... 阅读全文
摘要:
Power StringsTime Limit: 3000MSMemory Limit: 65536KTotal Submissions: 39274Accepted: 16309DescriptionGiven two strings a and b we define a*b to be the... 阅读全文
摘要:
Seek the Name, Seek the FameTime Limit: 2000MSMemory Limit: 65536KTotal Submissions: 14875Accepted: 7471DescriptionThe little cat is so famous, that m... 阅读全文