随笔分类 -  STL

HDU 4841 圆桌问题
摘要:圆桌上围坐着2n个人。其中n个人是好人,另外n个人是坏人。如果从第一个人开始数数,数到第m个人,则立即处死该人;然后从被处死的人之后开始数数,再将数到的第m个人处死……依此方法不断处死围坐在圆桌上的人。试问预先应如何安排这些好人与坏人的座位,能使得在处死n个人之后,圆桌上围坐的剩余的n个人全是好人。 阅读全文

posted @ 2017-08-21 20:07 FTA_Macro 阅读(317) 评论(0) 推荐(0)

CSU 1826 Languages [map]
摘要:Description The Enterprise has encountered a planet that at one point had been inhabited. The only remnant from the prior civilization is a set of tex 阅读全文

posted @ 2017-07-30 19:22 FTA_Macro 阅读(382) 评论(0) 推荐(0)

POJ 3096 Surprising Strings [map]
摘要:Surprising Strings Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 7225 Accepted: 4663 Description The D-pairs of a string of letters are t 阅读全文

posted @ 2017-07-29 19:20 FTA_Macro 阅读(189) 评论(0) 推荐(0)

CodeForces 831C Jury Marks [set]
摘要:C. Jury Marks time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Jury Marks time limit p 阅读全文

posted @ 2017-07-29 19:19 FTA_Macro 阅读(205) 评论(0) 推荐(0)

导航