摘要: City Upgrades Time limit: 1000 msMemory limit: 128 MB City Upgrades Time limit: 1000 msMemory limit: 128 MB There are N cities placed in a line. For e 阅读全文
posted @ 2017-03-08 22:07 代码荒 阅读(114) 评论(0) 推荐(0) 编辑
摘要: Increasing Pair Time limit: 1000 msMemory limit: 128 MB Increasing Pair Time limit: 1000 msMemory limit: 128 MB You are given an array A of length N r 阅读全文
posted @ 2017-03-08 12:46 代码荒 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Time Limit: 0.5 seconds Memory Limit: 512 mebibytes Mingming loves playing with numbers, and today, someone gives him a permutation of nn : P_1, P_2\l 阅读全文
posted @ 2017-03-05 22:17 代码荒 阅读(263) 评论(0) 推荐(0) 编辑
摘要: Description The game “The Pilots Brothers: following the stripy elephant” has a quest where a player needs to open a refrigerator. There are 16 handle 阅读全文
posted @ 2017-02-20 21:32 代码荒 阅读(120) 评论(0) 推荐(0) 编辑
摘要: Description Flip game is played on a rectangular 4x4 field with two-sided pieces placed on each of its 16 squares. One side of each piece is white and 阅读全文
posted @ 2017-02-20 18:49 代码荒 阅读(164) 评论(0) 推荐(0) 编辑
摘要: time limit per test 1 second memory limit per test 256 megabytes time limit per test 1 second time limit per test 1 second memory limit per test 256 m 阅读全文
posted @ 2017-02-20 12:51 代码荒 阅读(138) 评论(0) 推荐(0) 编辑
摘要: Description 7月17日是Mr.W的生日,ACM-THU为此要制作一个体积为Nπ的M层生日蛋糕,每层都是一个圆柱体。 设从下往上数第i(1 <= i <= M)层蛋糕是半径为Ri, 高度为Hi的圆柱。当i < M时,要求Ri > Ri+1且Hi > Hi+1。 由于要在蛋糕上抹奶油,为尽可 阅读全文
posted @ 2017-02-19 20:10 代码荒 阅读(272) 评论(0) 推荐(0) 编辑