摘要: Professor GukiZ's Robot CodeForces - 620A 机器人很好玩 一开始在(x1,y1) 最后在(x2,y2) 每秒钟内横坐标最多变化1(也可以不变化)纵坐标也是 问最少几秒钟到 Inputx1 和 x2 绝对值在10^9以内Output最少几秒可以走到Example 阅读全文
posted @ 2019-03-22 19:37 yccdu 阅读(88) 评论(0) 推荐(0) 编辑
摘要: Kefa and Park CodeForces - 580C 一棵以1为根的树,树上有些点是红的。一个叶子是合法的当且仅当从根到它的路径上出现的连续红点个数不超过m。求有多少个叶子是合法的。Input第一行两个整数n和m(2≤n ≤105,1≤m≤n) 第二行n个整数0或1,如果是1,表示第i个点 阅读全文
posted @ 2019-03-22 19:35 yccdu 阅读(202) 评论(0) 推荐(0) 编辑
摘要: DZY Loves Chessboard CodeForces - 445A DZY 喜欢棋盘,他很享受棋盘上的游戏。 他有一个 n 行和 m 列的棋盘。棋盘上的某些单元格是坏的位置,其他的是好的位置。对于每个好位置的单元格,DZY 希望在上面放一枚棋子。每枚棋子要么是白色的,要么是黑色的。在放置了 阅读全文
posted @ 2019-03-22 19:32 yccdu 阅读(253) 评论(0) 推荐(0) 编辑
摘要: Valera and Plates CodeForces - 369A Valera is a lazy student. He has m clean bowls and k clean plates. Valera has made an eating plan for the next n d 阅读全文
posted @ 2019-03-22 19:29 yccdu 阅读(183) 评论(0) 推荐(0) 编辑
摘要: Books CodeForces - 279B When Valera has got some free time, he goes to the library to read some books. Today he's got t free minutes to read. That's w 阅读全文
posted @ 2019-03-22 19:27 yccdu 阅读(183) 评论(0) 推荐(0) 编辑
摘要: Lucky Ticket CodeForces - 146A Petya loves lucky numbers very much. Everybody knows that lucky numbers are positive integers whose decimal record cont 阅读全文
posted @ 2019-03-22 19:26 yccdu 阅读(188) 评论(0) 推荐(0) 编辑
摘要: Shortest path of the king CodeForces - 3A 棋盘上的国王被单独放置。尽管他是孤独的,但并未伤心,因为他有事关全局的重要性。例如,他必须正式访问方格 t 。由于国王不习惯于浪费自己的时间,因此他想用最小的移动步数,从自己的当前位置 s 抵达方格 t 。请帮助他达 阅读全文
posted @ 2019-03-22 19:23 yccdu 阅读(309) 评论(0) 推荐(0) 编辑
摘要: P2698 [USACO12MAR]花盆Flowerpot 题目描述 Farmer John has been having trouble making his plants grow, and needs your help to water them properly. You are giv 阅读全文
posted @ 2019-03-22 17:48 yccdu 阅读(202) 评论(0) 推荐(0) 编辑
摘要: P2397 yyy loves Maths VI (mode) 题目背景 自动上次redbag用加法好好的刁难过了yyy同学以后,yyy十分愤怒.他还击给了redbag一题,但是这题他惊讶的发现自己居然也不会,所以只好找你 题目描述 udp2:第一题因为语言性质问题,比赛结束后将所有c/c++的程序 阅读全文
posted @ 2019-03-22 17:32 yccdu 阅读(155) 评论(0) 推荐(0) 编辑