摘要: 1350. CanteenTime limit: 1.0 second Memory limit: 64 MBIt’s dangerous to eat in a canteen — you may be poisoned by a not fresh food. One may fall into a coma because of the canteen’s chicken and the other feels OK. And vice versa. The food is cooked fromMdifferent food stuffs. There areNdifferent fo 阅读全文
posted @ 2013-08-08 17:51 persistent codeants 阅读(283) 评论(0) 推荐(0)
摘要: Problem DescriptionThe cows don't use actual bowling balls when they go bowling. They each take a number (in the range 0..99), though, and line up in a standard bowling-pin-like triangle like this: 7 3 8 8 1 0 2 7 4 4 4 5 2 6 5Then the other cows ... 阅读全文
posted @ 2013-08-08 16:38 persistent codeants 阅读(224) 评论(0) 推荐(0)
摘要: Problem DescriptionGigel has a strange "balance" and he wants to poise it. Actually, the device is different from any other ordinary balance. It orders two arms of negligible weight and each arm's length is 15. Some hooks are attached to these arms and Gigel wants to hang up some weigh 阅读全文
posted @ 2013-08-08 16:06 persistent codeants 阅读(259) 评论(0) 推荐(0)
摘要: DescriptionBessie wants to navigate her spaceship through a dangerous asteroid field in the shape of an N x N grid (1 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 int map[1000][1000]; 9 int bmask[1000];10 int ny,nx;11 int cy[1000],cx[1000];12 int n,k,a,b;13 int xm. 阅读全文
posted @ 2013-08-08 11:10 persistent codeants 阅读(249) 评论(0) 推荐(0)