摘要:
A1065 A+B and C (64bit) (20)(20 分) Given three integers A, B and C in [ 2^63^, 2^63^], you are supposed to tell whether A+B C. Input Specification: Th 阅读全文
摘要:
1042 Shuffling Machine (20)(20 分) Shuffling is a procedure used to randomize a deck of playing cards. Because standard shuffling techniques are seen a 阅读全文
摘要:
1046 Shortest Distance (20)(20 分) "提问" The task is really simple: given N exits on a highway which forms a simple cycle, you are supposed to tell the 阅读全文
摘要:
1046 划拳(15)(15 分) 划拳是古老中国酒文化的一个有趣的组成部分。酒桌上两人划拳的方法为:每人口中喊出一个数字,同时用手比划出一个数字。如果谁比划出的数字正好等于两人喊出的数字之和,谁就赢了,输家罚一杯酒。两人同赢或两人同输则继续下一轮,直到唯一的赢家出现。 下面给出甲、乙两人的划拳记录 阅读全文