上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 25 下一页
摘要: 1.FZU2272 Frog 传送门:http://acm.fzu.edu.cn/problem.php?pid=2272 题意:鸡兔同笼通解 题解:解一个方程组直接输出就行 代码如下: #include <map> #include <set> #include <cmath> #include 阅读全文
posted @ 2018-08-21 16:50 buerdepepeqi 阅读(296) 评论(0) 推荐(0) 编辑
摘要: Corral the Cows Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 1352 Accepted: 565 Description Farmer John wishes to build a corral for his 阅读全文
posted @ 2018-08-18 16:13 buerdepepeqi 阅读(216) 评论(0) 推荐(0) 编辑
摘要: C. Fountains time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Fountains time limit per 阅读全文
posted @ 2018-08-18 10:38 buerdepepeqi 阅读(364) 评论(0) 推荐(0) 编辑
摘要: D. Magazine Adtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe main city magazine offers its r 阅读全文
posted @ 2018-08-16 21:20 buerdepepeqi 阅读(170) 评论(0) 推荐(0) 编辑
摘要: https://codeforces.com/contest/902/problem/C 题意: 给你树的深度和树的每个节点的深度,问你是否有重构,如果有重构输出两个不同的结构 题解: 如果相邻节点的深度都大于1的话,这两个节点就是某个节点的子树,所以会有同构,输出子节点在同一个父节点上的情况和子节 阅读全文
posted @ 2018-08-14 22:51 buerdepepeqi 阅读(164) 评论(0) 推荐(0) 编辑
摘要: B. Coloring a Tree 题目链接: https://codeforces.com/contest/902/problem/B 题意:给你一颗树,原先是没有颜色的,需要你给树填色成指定的样子,每次填色的话,子树会和根节点变成同一种颜色,问需要多少次填色 题解:前向星建树,从每个父节点便利 阅读全文
posted @ 2018-08-14 21:58 buerdepepeqi 阅读(221) 评论(0) 推荐(0) 编辑
摘要: Drying Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 22163 Accepted: 5611 Description It is very hard to wash and especially to dry cloth 阅读全文
posted @ 2018-08-11 20:32 buerdepepeqi 阅读(104) 评论(0) 推荐(0) 编辑
摘要: C. Cinema time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Moscow is hosting a major inte 阅读全文
posted @ 2018-08-10 10:44 buerdepepeqi 阅读(222) 评论(1) 推荐(0) 编辑
摘要: 2457: [BeiJing2011]双端队列 Description Sherry现在碰到了一个棘手的问题,有N个整数需要排序。 Sherry手头能用的工具就是若干个双端队列。 她需要依次处理这N个数,对于每个数,Sherry能做以下两件事: 1.新建一个双端队列,并将当前数作为这个队列中的唯一的 阅读全文
posted @ 2018-08-10 09:15 buerdepepeqi 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 题目地址:http://www.joyoi.cn/problem/tyvj-1305 最大子序和 题目地址:http://www.joyoi.cn/problem/tyvj-1305 最大子序和 题目地址:http://www.joyoi.cn/problem/tyvj-1305 最大子序和 题目地 阅读全文
posted @ 2018-08-10 09:14 buerdepepeqi 阅读(143) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 25 下一页