摘要: Curling 2.0 Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 26408 Accepted: 10546 Description On Planet MM-21, after their Olympic games th 阅读全文
posted @ 2018-08-18 23:49 千摆渡Qbd 阅读(157) 评论(0) 推荐(0)
摘要: Time limit1000 ms Memory limit131072 kB タナカ氏が HW アールの果樹園を残して亡くなりました。果樹園は東西南北方向に H × Wの区画に分けられ、区画ごとにリンゴ、カキ、ミカンが植えられています。タナカ氏はこんな遺言を残していました。 果樹園は区画単位ででき 阅读全文
posted @ 2018-08-18 23:40 千摆渡Qbd 阅读(91) 评论(0) 推荐(0)
摘要: Time limit1000 ms Memory limit30000 kB There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is stan 阅读全文
posted @ 2018-08-18 23:37 千摆渡Qbd 阅读(104) 评论(0) 推荐(0)
摘要: Time limit1000 ms Memory limit262144 kB 题目: Vasiliy is fond of solving different tasks. Today he found one he wasn't able to solve himself, so he asks 阅读全文
posted @ 2018-08-18 23:33 千摆渡Qbd 阅读(139) 评论(0) 推荐(0)
摘要: Time limit1000 ms Memory limit65536 kB The multiplication puzzle is played with a row of cards, each containing a single positive integer. During the 阅读全文
posted @ 2018-08-18 23:28 千摆渡Qbd 阅读(229) 评论(0) 推荐(0)
摘要: Time limit1000 ms Memory limit32768 kB 给定K个整数的序列{ N1, N2, ..., NK },其任意连续子序列可表示为{ Ni, Ni+1, ..., Nj },其中 1 <= i <= j <= K。最大连续子序列是所有连续子序列中元素和最大的一个, 例如 阅读全文
posted @ 2018-08-18 23:04 千摆渡Qbd 阅读(136) 评论(0) 推荐(0)
摘要: Time limit1000 ms Memory limit65536 kB Background The knight is getting bored of seeing the same black and white squares again and again and has decid 阅读全文
posted @ 2018-08-18 22:56 千摆渡Qbd 阅读(290) 评论(0) 推荐(0)
摘要: Time limit1000 ms Memory limit32768 kB RPG girls今天和大家一起去游乐场玩,终于可以坐上梦寐以求的过山车了。可是,过山车的每一排只有两个座位,而且还有条不成文的规矩,就是每个女生必须找个个男生做partner和她同坐。但是,每个女孩都有各自的想法,举个例 阅读全文
posted @ 2018-08-18 22:51 千摆渡Qbd 阅读(117) 评论(0) 推荐(0)
摘要: Time limit1000 ms Memory limit65536 kB Due to recent rains, water has pooled in various places in Farmer John's field, which is represented by a recta 阅读全文
posted @ 2018-08-18 22:48 千摆渡Qbd 阅读(166) 评论(0) 推荐(0)
摘要: Time limit1000 ms Memory limit32768 kB 某省自从实行了很多年的畅通工程计划后,终于修建了很多路。不过路多了也不好,每次要从一个城镇到另一个城镇时,都有许多种道路方案可以选择,而某些方案要比另一些方案行走的距离要短很多。这让行人很困扰。 现在,已知起点和终点,请你 阅读全文
posted @ 2018-08-18 22:43 千摆渡Qbd 阅读(68) 评论(0) 推荐(0)
摘要: Time limit1000 ms Memory limit32768 kB 在每年的校赛里,所有进入决赛的同学都会获得一件很漂亮的t-shirt。但是每当我们的工作人员把上百件的衣服从商店运回到赛场的时候,却是非常累的!所以现在他们想要寻找最短的从商店到赛场的路线,你可以帮助他们吗? Input输 阅读全文
posted @ 2018-08-18 22:40 千摆渡Qbd 阅读(179) 评论(0) 推荐(0)
摘要: Time limit1000 ms Memory limit10000 kB 动物王国中有三类动物A,B,C,这三类动物的食物链构成了有趣的环形。A吃B, B吃C,C吃A。 现有N个动物,以1-N编号。每个动物都是A,B,C中的一种,但是我们并不知道它到底是哪一种。 有人用两种说法对这N个动物所构成 阅读全文
posted @ 2018-08-18 22:35 千摆渡Qbd 阅读(141) 评论(0) 推荐(0)
摘要: Time limit5000 ms Memory limit65536 kB There are so many different religions in the world today that it is difficult to keep track of them all. You ar 阅读全文
posted @ 2018-08-18 22:15 千摆渡Qbd 阅读(106) 评论(0) 推荐(0)
摘要: Suppose there are M people, including you, playing a special card game. At the beginning, each player receives N cards. The pip of a card is a positiv 阅读全文
posted @ 2018-08-18 22:10 千摆渡Qbd 阅读(260) 评论(0) 推荐(0)
摘要: George took sticks of the same length and cut them randomly until all parts became at most 50 units long. Now he wants to return sticks to the origina 阅读全文
posted @ 2018-08-18 21:58 千摆渡Qbd 阅读(122) 评论(0) 推荐(0)
摘要: 在N*N的方格棋盘放置了N个皇后,使得它们不相互攻击(即任意2个皇后不允许处在同一排,同一列,也不允许处在与棋盘边框成45角的斜线上。 你的任务是,对于给定的N,求出有多少种合法的放置方法。 Input共有若干行,每行一个正整数N≤10,表示棋盘和皇后的数量;如果N=0,表示结束。Output共有若 阅读全文
posted @ 2018-08-18 21:40 千摆渡Qbd 阅读(176) 评论(0) 推荐(0)
摘要: An earthquake takes place in Southeast Asia. The ACM (Asia Cooperated Medical team) have set up a wireless network with the lap computers, but an unex 阅读全文
posted @ 2018-08-18 21:29 千摆渡Qbd 阅读(165) 评论(0) 推荐(0)
摘要: 题目描述: A group of N people wishes to go across a river with only one boat, which can at most carry two persons. Therefore some sort of shuttle arrangem 阅读全文
posted @ 2018-08-18 21:24 千摆渡Qbd 阅读(343) 评论(0) 推荐(0)
摘要: 题目描述: Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,000) on 阅读全文
posted @ 2018-08-18 21:13 千摆渡Qbd 阅读(138) 评论(0) 推荐(0)
摘要: 题目描述: Farmer John wants to repair a small length of the fence around the pasture. He measures the fence and finds that he needs N (1 ≤ N ≤ 20,000) pla 阅读全文
posted @ 2018-08-18 21:04 千摆渡Qbd 阅读(250) 评论(0) 推荐(0)