随笔分类 - 算法_codeforces
摘要:B. Move and Turn(数学) 题意: 从原点出发走n步,只能上下左右四个方向,且除了第一步之外每次走都要做九十度的转弯。求最终可以到达的位置的个数 题解: 1 /* 2 当n为偶数时,可以看作水平走了 k = n/2 步,垂直方向也走了 k = n/2 步,水平方向上有 -k, -k +
阅读全文
摘要:图论 D. Weird journey time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output 图论 D. Weird journey
阅读全文
摘要: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
阅读全文
摘要:贪心 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
阅读全文
摘要:数论: 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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文