随笔分类 -  算法_codeforces

摘要:B. Move and Turn(数学) 题意: 从原点出发走n步,只能上下左右四个方向,且除了第一步之外每次走都要做九十度的转弯。求最终可以到达的位置的个数 题解: 1 /* 2 当n为偶数时,可以看作水平走了 k = n/2 步,垂直方向也走了 k = n/2 步,水平方向上有 -k, -k + 阅读全文
posted @ 2020-12-30 15:59 luckilzy 阅读(218) 评论(0) 推荐(0) 编辑
摘要:图论 D. Weird journey time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output 图论 D. Weird journey 阅读全文
posted @ 2017-04-06 12:56 luckilzy 阅读(552) 评论(0) 推荐(0) 编辑
摘要:C. Divide by Three time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A positive integer num 阅读全文
posted @ 2017-03-30 11:16 luckilzy 阅读(510) 评论(0) 推荐(0) 编辑
摘要:贪心 B. Color the Fence time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Igor has fallen in 阅读全文
posted @ 2017-03-19 20:53 luckilzy 阅读(483) 评论(0) 推荐(0) 编辑
摘要:数论: C. Alice and Bob time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output It is so boring in 阅读全文
posted @ 2017-03-16 21:46 luckilzy 阅读(286) 评论(0) 推荐(0) 编辑
摘要:A. Shell Game time limit per test 0.5 seconds memory limit per test 256 megabytes input standard input output standard output Bomboslav likes to look 阅读全文
posted @ 2017-03-12 22:25 luckilzy 阅读(963) 评论(0) 推荐(0) 编辑
摘要:B. The Meeting Place Cannot Be Changed time limit per test 5 seconds memory limit per test 256 megabytes input standard input output standard output T 阅读全文
posted @ 2017-03-06 20:09 luckilzy 阅读(378) 评论(0) 推荐(0) 编辑
摘要:B. The Queue time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Finally! Vasya have come of 阅读全文
posted @ 2017-02-19 15:55 luckilzy 阅读(412) 评论(0) 推荐(0) 编辑
摘要:C. Timofey and a tree time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Each New Year Timo 阅读全文
posted @ 2017-02-07 22:00 luckilzy 阅读(276) 评论(0) 推荐(0) 编辑
摘要:D. Santa Claus and a Palindrome time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Santa Cl 阅读全文
posted @ 2016-12-29 11:03 luckilzy 阅读(228) 评论(0) 推荐(0) 编辑
摘要:E. Comments time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output E. Comments time limit per t 阅读全文
posted @ 2016-12-25 12:05 luckilzy 阅读(299) 评论(0) 推荐(0) 编辑
摘要:D. Winter Is Coming time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output The winter in Berland 阅读全文
posted @ 2016-12-20 10:50 luckilzy 阅读(297) 评论(0) 推荐(0) 编辑
摘要:C. Vladik and fractions time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output C. Vladik and fra 阅读全文
posted @ 2016-12-15 16:10 luckilzy 阅读(394) 评论(0) 推荐(0) 编辑
摘要:B. Arpa’s obvious problem and Mehrdad’s terrible solution time limit per test 1 second memory limit per test 256 megabytes input standard input output 阅读全文
posted @ 2016-12-07 20:44 luckilzy 阅读(396) 评论(0) 推荐(0) 编辑
摘要:D. Sea Battle time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Galya is playing one-dimens 阅读全文
posted @ 2016-11-20 22:04 luckilzy 阅读(349) 评论(0) 推荐(0) 编辑
摘要:D. Kostya the Sculptor time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output Kostya is a genia 阅读全文
posted @ 2016-11-01 11:35 luckilzy 阅读(575) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示