恒邪

2014年4月1日 #

[ACM] hdu 1205 吃糖果(鸽巢原理)

摘要: 吃糖果Time Limit: 6000/3000 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 21695Accepted Submission(s): 6185Problem DescriptionHOHO,终于从Speakless手上赢走了所有的糖果,是Gardon吃糖果时有个特殊的癖好,就是不喜欢将一样的糖果放在一起吃,喜欢先吃一种,下一次吃另一种,这样;可是Gardon不知道是否存在一种吃糖果的顺序使得他能把所有糖果都吃完?请你写个程序帮忙计算一下。Input第一行有一个整数T 阅读全文

posted @ 2014-04-01 11:05 恒邪 阅读(260) 评论(0) 推荐(0) 编辑

[ACM] poj 3128 Leonardo's Notebook (置换群,循环节)

摘要: Leonardo's NotebookTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 1791Accepted: 787Description— I just bought Leonardo's secret notebook! Rare object collector Stan Ucker was really agitated but his friend, special investigator Sarah Kepticwas unimpressed.— How do you know it is ge 阅读全文

posted @ 2014-04-01 10:43 恒邪 阅读(205) 评论(0) 推荐(0) 编辑

导航