摘要: PAT 1015. Reversible Primes A reversible prime in any number system is a prime whose "reverse" in that number system is also a prime. For example in t 阅读全文
posted @ 2018-01-05 22:14 A-Little-Nut 阅读(181) 评论(0) 推荐(0) 编辑
摘要: PAT 1014. Waiting in Line (30) Suppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the waiting 阅读全文
posted @ 2018-01-05 13:22 A-Little-Nut 阅读(249) 评论(0) 推荐(0) 编辑
摘要: Battle Over Cities It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways 阅读全文
posted @ 2018-01-05 09:58 A-Little-Nut 阅读(136) 评论(0) 推荐(0) 编辑