摘要: Bus PassTime Limit: 5 Seconds Memory Limit: 32768 KB You travel a lot by bus and the costs of all the seperate tickets are starting to add up.Therefore you want to see if it might be advantageous for you to buy a bus pass.The way the bus system works in your country (and also in the Netherlands) is 阅读全文
posted @ 2013-02-11 15:01 剑不飞 阅读(260) 评论(0) 推荐(0) 编辑
摘要: RescueTime Limit: 2 Seconds Memory Limit: 65536 KB Angel was caught by the MOLIGPY! He was put in prison by Moligpy. The prison is described as a N * M (N, M #include #include #include using namespace std; const int oo=1e9; const int mm=233; const int dx[]={1,-1,0,0}; const int dy[]={0,0,1,-1}; int. 阅读全文
posted @ 2013-02-11 12:56 剑不飞 阅读(99) 评论(0) 推荐(0) 编辑
摘要: Gnome TetravexTime Limit: 10 Seconds Memory Limit: 32768 KB Hart is engaged in playing an interesting game, Gnome Tetravex, these days. In the game, at the beginning, the player is given n*n squares. Each square is divided into four triangles marked four numbers (range from 0 to 9). In a square, the 阅读全文
posted @ 2013-02-11 12:12 剑不飞 阅读(132) 评论(0) 推荐(0) 编辑