
题目集 - CF
是Elie呀
人生苦短,莫忘初衷;凡事相信,凡事期待。认真做事,认真做人!翁恺老师寄语:“其实学习终归是一件痛苦的事情,所以呢面对学习你还是得要认真,用功,努力地去学习。享受的是什么?是学习之后获得的那种成就,快乐是从成就中来的。”
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Educational Codeforces Round 45 (Rated for Div. 2)
A Commentary Boxes standard input/output 2 s, 256 MB x4272 #include<bits/stdc++.h> using namespace std; int main(){ long long n,m,a,b,ans1=0,ans2=0; scanf("...原创 2018-08-03 20:13:51 · 153 阅读 · 0 评论 -
Educational Codeforces Round 63 (Rated for Div. 2) (A,B,C)
这次比赛很顺利的出了3个题,rating上涨了98,菜菜的我后面的不会了。 A - Reverse a Substring #include<bits/stdc++.h> using namespace std; typedef long long ll; const int maxn=1e5+10; const int MOD=1e9+7; int main(){ int...原创 2019-04-23 17:33:28 · 154 阅读 · 0 评论 -
Codeforces Round #553 (Div. 2) (A,B,C,D)
终测一个题A,B被hack了。好好补题啦 题目链接:https://codeforces.com/contest/1151 A. Maxim and Biology(模拟,不解释) #include<bits/stdc++.h> using namespace std; typedef long long ll; const int maxn=110; int main()...原创 2019-04-22 18:43:35 · 212 阅读 · 0 评论 -
Codeforces Round #551 (Div. 2) (A,B,C)
一开始做出来两道题,提交第三题一直wa,就在这个时候A题突然被人hack了,啊啊啊~我是猪吗?!A题也能错! 刚刚看A题的时候,才发现怎么代码里还有一个n--,什么鬼?!一定是昨天不清醒,导致最后rating又掉了11,下一场加油,让rating快点涨上去。不说了,补题。 题目链接:Codeforces Round #551 (Div. 2) A. Serval and Bus 遍历一...原创 2019-04-14 09:08:43 · 179 阅读 · 0 评论 -
Codeforces Round #550 (Div. 3) (A,)
今晚想打场div3的cf,在打之前先将上次的题整理下吧。(之前没参加) 比赛链接:http://codeforces.com/contest/1144 A. Diverse Strings 其实是连续的字母段,随机打乱,判断输入的字符串是不是这样的一串字符。 #include<bits/stdc++.h> using namespace std; typedef long l...原创 2019-04-16 20:50:55 · 195 阅读 · 0 评论 -
Codeforces Global Round 2(A/B/C)
这场比赛作出前两道题就挂机了,没有信心做下去了。 题目链接:http://codeforces.com/contest/1119 A. Ilya and a Colorful Walk #include<bits/stdc++.h> using namespace std; const int maxn=3e5+10; int a[maxn]; int main(){ int...原创 2019-04-08 19:54:54 · 319 阅读 · 0 评论 -
(模拟)A. Vasya and Book—— Educational Codeforces Round 55 (Rated for Div. 2)
传送门:A. Vasya and Book 题解: 向左翻d页,如果翻超界,那就是翻到第一页; 向右翻d页,如果翻超界,那就是翻到第n页。 #include<cstdio> #include<iostream> #include<algorithm> #include<cmath> using namespace std; typedef l...原创 2018-11-29 21:54:33 · 158 阅读 · 0 评论 -
(模拟题)B. Vova and Trophies—— Educational Codeforces Round 55 (Rated for Div. 2)
传送门:B. Vova and Trophies 题意:给你一个长度为n且只由'G','S'组成的字符串,'G','S'的位置最多互换一次,问连续'G'的最大长度? 思路:看到题目,感觉O(n)的时间复杂度就能实现,时限2s,足够了。设置cnt1,cnt2分别存取一个'S'左右的连续的‘G’的最大长度。 注意: 遍历的时候,遇到一个'S',那么它前一个'S','GGSGG'这种情况就可以处...原创 2018-11-29 20:42:13 · 330 阅读 · 0 评论 -
Codeforces Round #514 (Div. 2)
A了两道题,第三题没看懂,第五题没看完,第四题还没来得及看。 Codeforces Round #514 (Div. 2) A. Cashier #include<iostream> #include<cstdio> using namespace std; int main(){ int n,L,a,pre=0,t,l; int cnt=0; s...原创 2018-10-06 09:01:30 · 871 阅读 · 0 评论 -
Codeforces Round #511 (Div. 2)
昨晚的比赛没有做,今天直接补的。做出了A,B两题。 A. Little C Loves 3 I X5323 #include<iostream> #include<cstdio> #include<algorithm> using namespace std; typedef long long ll; int main(){ int n,a,...原创 2018-09-22 19:16:21 · 269 阅读 · 0 评论 -
Educational Codeforces Round 51 (Rated for Div. 2)
在这过程中想出了三道题,感觉前三题难度还可以。 A.Vasya And Password X3539 #include<iostream> #include<cstdio> #include<cstring> using namespace std; char str[110]; int main(){ int t; scanf("%d",&t...原创 2018-09-21 18:41:24 · 302 阅读 · 0 评论 -
Codeforces Round #501 (Div. 3)
本次只在开场做出了A,C两道题。无奈太困了,直接睡觉了。 A.Points in Segments 简单题,不解释。 #include<cstdio> #include<cstring> #include<cstdlib> #include<cmath> #include<algorithm> using namespace st...原创 2018-08-02 21:27:56 · 258 阅读 · 0 评论 -
Codeforces Round #552 (Div. 3)
题目链接:https://codeforces.com/contest/1154 这次比赛通过了三个题就不做了,结果评测后只剩下两题了(A,B),蒟蒻~ A. Restoring Three Numbers #include<bits/stdc++.h> using namespace std; typedef long long ll; const int maxn=1e6+...原创 2019-04-18 21:46:15 · 174 阅读 · 0 评论