上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 64 下一页
摘要: ## Problem A A - Memory and Crow CodeForces - 712A 题意: 分析可得bi=ai+ai+1 题解: 分析可得bi=ai+ai+1 C++版本一 #include<bits/stdc++.h> using namespace std; const int 阅读全文
posted @ 2019-08-05 20:05 DWVictor 阅读(188) 评论(0) 推荐(0)
摘要: ## Problem A A - Meeting of Old Friends CodeForces - 714A 题意: 解题说明:此题其实是求两段区间的交集,注意要去除掉交集中的某个点。 题解: C++版本一 #include<cstdio> #include<iostream> #includ 阅读全文
posted @ 2019-08-05 19:54 DWVictor 阅读(179) 评论(0) 推荐(0)
摘要: ## Problem A 题意: 题解: C++版本一 ## Problem B 题意: 题解: C++版本一 ## Problem C 题意: 题解: C++版本一 ## Problem D 题意: 题解: C++版本一 ## Problem E 题意: 题解: C++版本一 ## Problem 阅读全文
posted @ 2019-08-05 11:00 DWVictor 阅读(274) 评论(0) 推荐(0)
摘要: A - Settlers' Training CodeForces - 63B 题意 给你一串数字,相同的数字为一组,每次可以给一组中的一个数字加一,问这一串数字全变成K需要多少步? 题解 模拟 C++代码 /** /*@author Victor /*language C++ */ //#incl 阅读全文
posted @ 2019-08-03 20:27 DWVictor 阅读(229) 评论(0) 推荐(1)
摘要: 题意 求出最短路和次短路的条数,当次短路比最短路长度小1时,输出条数之和,反之输出最短路条数。 题解 dis1[],cnt1[],dis2[],cnt2[] 分别表示最短路的长度和条数,次短路的长度和条数。 当当前距离小于当前点最短路长度的时候,更新二者长度和条数。 当当前距离等于当前点最短路长度的 阅读全文
posted @ 2019-07-30 21:45 DWVictor 阅读(176) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 64 下一页