07 2013 档案

摘要:The SuspectsTime Limit:1000MSMemory Limit:20000KB64bit IO Format:%I64d & %I64u[Submit] [Go Back] [Status]DescriptionSevere acute respiratory syndrome (SARS), an atypical pneumonia of unknown aetiology, was recognized as a global threat in mid-March 2003. To minimize transmission to others, the b 阅读全文
posted @ 2013-07-31 09:31 KRisen 阅读(144) 评论(0) 推荐(0)
摘要:Monkey and BananaTime Limit:2000MSMemory Limit:65536KB64bit IO Format:%lld & %lluSubmitStatusDescriptionA group of researchers are designing an experiment to test the IQ of a monkey. They will hang a banana at the roof of a building, and at the mean time, provide the... 阅读全文
posted @ 2013-07-30 14:01 KRisen 阅读(258) 评论(0) 推荐(0)
摘要:Time Limit:10000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionIgnatius花了一个星期的时间终于找到了传说中的宝藏,宝藏被放在一个房间里,房间的门用密码锁起来了,在门旁边的墙上有一些关于密码的提示信息:密码是一个C进制的数,并且只能由给定的M个数字构成,同时密码是一个给定十进制整数N(0#include #include #include #include #include #include using namespace std;int n,m,k;int re[ 阅读全文
posted @ 2013-07-26 15:00 KRisen 阅读(259) 评论(0) 推荐(0)
摘要:Protecting the FlowersTime Limit:2000MSMemory Limit:65536KTotal Submissions:3204Accepted:1300DescriptionFarmer John went to cut some wood and leftN(2 ≤N≤ 100,000) cows eating the grass, as usual. When he returned, he found to his horror that the cluster of cows was in his garden eating his beautiful 阅读全文
posted @ 2013-07-23 16:25 KRisen 阅读(787) 评论(0) 推荐(0)
摘要:感觉有必要写一篇日志反省下一开始踌躇满志的ACM之路,如今走得越发有些艰难我在努力找节奏只是我是自己太笨了还是怎么回事,这两天的代码。。我不想吐槽了先是我敲得特别顺心的一个模拟题,用队列做的,就RE,我怎么也想不通哪里会爆栈,人家用JAVA写的几乎和我一样的队列模拟,就过了还有今天的BFS那个题,是我想简单了?大家都用的三维数组+哈希来做,我用我的二维数组广搜一下出问题了,但是我模拟了一下搜索过程,就是不知道怎么会有问题就连数据测试了那么久都没找出来,我一度认为是结构体里定义的数组有问题,难道结构体里面定义的数组会作为公共的?我还专门测试了一番,发现不是啊,人家是相互独立的,那我就只能让这题先 阅读全文
posted @ 2013-07-22 23:12 KRisen 阅读(143) 评论(0) 推荐(0)
摘要:A -胜利大逃亡(续)Time Limit:2000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionIgnatius再次被魔王抓走了(搞不懂他咋这么讨魔王喜欢)……这次魔王汲取了上次的教训,把Ignatius关在一个n*m的地牢里,并在地牢的某些地方安装了带锁的门,钥匙藏在地牢另外的某些地方。刚开始Ignatius被关在(sx,sy)的位置,离开地牢的门在(ex,ey)的位置。Ignatius每分钟只能从一个坐标走到相邻四个坐标中的其中一个。魔王每t分钟回地牢视察一次,若发现Ignati 阅读全文
posted @ 2013-07-22 15:11 KRisen 阅读(295) 评论(0) 推荐(0)
摘要:A -Card StackingTime Limit:1000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionBessie is playing a card game with herN-1 (2 ≤N≤ 100) cow friends using a deck withK(N≤K≤ 100,000;Kis a multiple ofN) cards. The deck containsM=K/N"good" cards andK-M"bad" 阅读全文
posted @ 2013-07-20 08:48 KRisen 阅读(339) 评论(0) 推荐(0)
摘要:POJ - 3258River HopscotchTime Limit:2000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64u[Submit] [Go Back] [Status]DescriptionEvery year the cows hold an event featuring a peculiar version of hopscotch that involves carefully jumping from rock to rock in a river. The excitement takes place on 阅读全文
posted @ 2013-07-18 23:59 KRisen 阅读(1645) 评论(0) 推荐(0)
摘要:POJ-3273 Monthly ExpenseTime Limit:2000MSMemory Limit:65536KTotal Submissions:10557Accepted:4311DescriptionFarmer John is an astounding accounting wizard and has realized he might run out of money to run the farm. He has al... 阅读全文
posted @ 2013-07-17 19:19 KRisen 阅读(2355) 评论(0) 推荐(0)
摘要:A -PermutationsTime Limit:2000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionHappy PMP is freshman and he is learning about algorithmic problems. He enjoys playing algorithmic games a lot.One of the seniors gave Happy PMP a nice game. He is given two permutations of n 阅读全文
posted @ 2013-07-17 13:47 KRisen 阅读(548) 评论(0) 推荐(0)