摘要: 题目描述 Farmer John has purchased a lush new rectangular pasture composed of M by N (1 ≤ M ≤ 12; 1 ≤ N ≤ 12) square parcels. He wants to grow some yummy 阅读全文
posted @ 2018-02-10 20:38 OptimusPrime_L 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 题目描述 小明对数学饱有兴趣,并且是个勤奋好学的学生,总是在课后留在教室向老师请教一些问题。一天他早晨骑车去上课,路上见到一个老伯正在修剪花花草草,顿时想到了一个有关修剪花卉的问题。于是当日课后,小明就向老师提出了这个问题: 一株奇怪的花卉,上面共连有N 朵花,共有N-1条枝干将花儿连在一起,并且未 阅读全文
posted @ 2018-02-10 18:45 OptimusPrime_L 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 题目 题目描述 在一个圆形操场的四周摆放N堆石子,现要将石子有次序地合并成一堆.规定每次只能选相邻的2堆合并成新的一堆,并将新的一堆的石子数,记为该次合并的得分。 试设计出1个算法,计算出将N堆石子合并成1堆的最小得分和最大得分. 输入输出格式 输入格式: 数据的第1行试正整数N,1≤N≤100,表 阅读全文
posted @ 2018-02-09 21:46 OptimusPrime_L 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 题目 题目描述 Farmer John has decided to bring water to his N (1 <= N <= 300) pastures which are conveniently numbered 1..N. He may bring water to a pasture 阅读全文
posted @ 2018-02-07 11:16 OptimusPrime_L 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 题目 题目描述 Bessie and her sister Elsie want to travel from the barn to their favorite field, such that they leave at exactly the same time from the barn, 阅读全文
posted @ 2018-02-05 22:48 OptimusPrime_L 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 题目描述 看下面的五张 9 x 8 的图像: ........ ........ ........ ........ .CCC.... EEEEEE.. ........ ........ ..BBBB.. .C.C.... E....E.. DDDDDD.. ........ ..B..B.. . 阅读全文
posted @ 2018-02-04 14:18 OptimusPrime_L 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 题目 BOI 2013Rostock, GermanyApril 8 – May 12, 2013 b i Day 2ENGtracksPage 1 of 2Tracks in the SnowThere is a rectangular meadow in a forest, having bee 阅读全文
posted @ 2018-02-02 22:46 OptimusPrime_L 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 题目 BOI 2005 Day 1MazePasvalys Language: ENGLithuania7.5.2005 Page 1 of 2 MAZEMaze (Lithuania)Consider the following maze made of equilateral triangles 阅读全文
posted @ 2018-02-01 21:11 OptimusPrime_L 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 题目(HDU - 1677) Nested Dolls Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4020 Accepted Submiss 阅读全文
posted @ 2018-01-30 22:03 OptimusPrime_L 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 题目 题目描述 Consider an N x N (1 <= N <= 100) square field composed of 1 by 1 tiles. Some of these tiles are impassible by cows and are marked with an 'x' 阅读全文
posted @ 2018-01-30 21:44 OptimusPrime_L 阅读(264) 评论(0) 推荐(0) 编辑