2013年11月25日

A. Strange Addition 暴力

摘要: A. Strange Additiontime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputUnfortunately, Vasya can only sum pairs of integers (a,b), such that for any decimal place at least one number has digit0in this place. For example, Vasya can sum numbers505and50, 阅读全文

posted @ 2013-11-25 17:08 keep trying 阅读(292) 评论(0) 推荐(0) 编辑

A - Pair of Numbers 数论

摘要: A -Pair of NumbersTime Limit:2000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uSubmitStatusAppoint description:DescriptionSimon has an arraya1, a2, ..., an, consisting ofnpositive integers. Today Simon asked you to find a pair of integersl, r(1 ≤ l ≤ r ≤ n), such that the following conditi 阅读全文

posted @ 2013-11-25 15:08 keep trying 阅读(272) 评论(0) 推荐(0) 编辑

2013年11月22日

I - Biridian Forest BFS+最短路

摘要: I -Biridian ForestTime Limit:2000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uSubmitStatusAppoint description:DescriptionYou're a mikemon breeder currently in the middle of your journey to become a mikemon master. Your current obstacle is go through the infamous Biridian Forest.The fo 阅读全文

posted @ 2013-11-22 20:45 keep trying 阅读(271) 评论(0) 推荐(0) 编辑

D. Block Tower + DFS

摘要: D. Block Towertime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAfter too much playing on paper, Iahub has switched to computer games. The game he plays is called "Block Towers". It is played in a rectangular grid withnrows andmcolumns (i 阅读全文

posted @ 2013-11-22 19:46 keep trying 阅读(219) 评论(0) 推荐(0) 编辑

K - Magic Five 逆元

摘要: K -Magic FiveTime Limit:1000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uSubmitStatusAppoint description:DescriptionThere is a long platescontainingndigits. Iahub wants to delete some digits (possibly none, but he is not allowed to delete all the digits) to form his "magic number&quo 阅读全文

posted @ 2013-11-22 15:56 keep trying 阅读(240) 评论(0) 推荐(0) 编辑

2013年11月21日

K - Building designing 其实是贪心

摘要: K -Building designingTime Limit:3000MSMemory Limit:0KB64bit IO Format:%lld & %lluSubmitStatusDescriptionBuilding designingAn architect wants to design a very high building. The building will consist of some floors, and each floor has a certain size. The size of a floor must be greater than the s 阅读全文

posted @ 2013-11-21 21:06 keep trying 阅读(273) 评论(0) 推荐(0) 编辑

2013年11月20日

M - Ciel and Duel 贪心

摘要: M -Ciel and DuelTime Limit:2000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uSubmitStatusAppoint description:DescriptionFox Ciel is playing a card game with her friend Jiro.Jiro hasncards, each one has two attributes:position(Attack or Defense) andstrength. Fox Ciel hasmcards, each one has 阅读全文

posted @ 2013-11-20 15:13 keep trying 阅读(183) 评论(0) 推荐(0) 编辑

2013年11月19日

L - Black-and-White Cube 简单构造

摘要: L -Black-and-White CubeTime Limit:1000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uSubmitStatusAppoint description:DescriptionYou are given a cube of sizek × k × k, which consists of unit cubes. Two unit cubes are considered neighbouring, if they have common face.Your task is to 阅读全文

posted @ 2013-11-19 13:13 keep trying 阅读(262) 评论(0) 推荐(0) 编辑

2013年11月18日

O - Ciel and Robot 模拟

摘要: O -Ciel and RobotTime Limit:1000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uSubmitStatusAppoint description:DescriptionFox Ciel has a robot on a 2D plane. Initially it is located in (0, 0). Fox Ciel code a command to it. The command was represented by strings. Each character ofsis one mo 阅读全文

posted @ 2013-11-18 19:04 keep trying 阅读(250) 评论(0) 推荐(0) 编辑

2013年11月17日

B. Levko and Permutation 简单构造

摘要: B. Levko and Permutationtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLevko loves permutations very much. A permutation of lengthnis a sequence of distinct positive integers, each is at mostn.Let’s assume that valuegcd(a, b)shows the greatest co 阅读全文

posted @ 2013-11-17 16:47 keep trying 阅读(339) 评论(0) 推荐(0) 编辑

导航