evan

For the lasting love

导航

2010年6月7日 #

Maya Calendar 1008 PKU

摘要: Description:http://acm.pku.edu.cn/JudgeOnline/problem?id=1008Haab Calendar(365 days per year)Month1~18: 20 days per month:0~19pop, no, zip, zotz, tzec, xul, yoxkin, mol, chen, yax, zac, ceh,mac, kanki... 阅读全文

posted @ 2010-06-07 14:37 evander 阅读(239) 评论(0) 推荐(0)

Counterfeit Dollar 1013 pku

摘要: Description:http://acm.pku.edu.cn/JudgeOnline/problem?id=1013有12枚硬币,11枚硬币是正常的,1枚是假的,可能轻也可能重,Sally通过三次称能够找出假的而且能够找出其轻重通过枚举每一枚的轻重看其是否符合,可以通过even剪枝一些情况Solution:[代码] 阅读全文

posted @ 2010-06-07 11:21 evander 阅读(175) 评论(0) 推荐(0)

Numbers that count 1016 PKU

摘要: Description:一个数的inventory是0-9每个数字出现多少次,例如5553141的inventory是211314351.如果一个数的inventory是其本身,则称其为self-inventorying,例如31123314的inventory还是311233142.一个数迭代j步求inventory之后可能是self-inventorying ,例如21221314&agrav... 阅读全文

posted @ 2010-06-07 10:10 evander 阅读(217) 评论(0) 推荐(0)