![](https://img-blog.csdnimg.cn/20190927151101105.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Codeforces比赛记录
记录一下每场cf的比赛与补题
Love_xyh
这个作者很懒,什么都没留下…
展开
-
Codeforces Round #674 (Div. 3)
A.Floor Number对于第一层要分开来算;当不整除时注意加一。#include <bits/stdc++.h>using namespace std;int T;int n,x,ans;int main(){ scanf("%d",&T); while (T--) { scanf("%d%d",&n,&x); n-=2; ans=1; if (n<=0) { printf("%d\n",ans); contin原创 2020-09-29 07:53:22 · 383 阅读 · 1 评论 -
Codeforces Round #608 (Div. 2)
今天状态还不错,补题补得比较顺利,div2 Solved:5 out of 6A.将b,c作为一个整体,个数为b,c的较小值;然后根据e,f的大小,决定先买a,还是先买b,c这个整体。如果先买了,就要贪心的尽可能买光。#include <bits/stdc++.h>using namespace std;int a,b,c,d,e,f,ans1,ans2,sum;int m...原创 2020-02-12 01:06:12 · 133 阅读 · 0 评论 -
Codeforces Round #615 (Div. 3)
D.什么叫做菜得真实???线段树常数大了点,然后被卡…我不就是用了一个struct嘛…怎么了…出题人个憨憨…node query(int k,int l,int r){ if (l==r) { node u; u.x=minn[k]; u.pos=l; return u; } int mid=l+r>>1; node u,v; u=query(k<...原创 2020-01-23 01:50:56 · 113 阅读 · 0 评论 -
Codeforces Round #611 (Div. 3)
A,B就不写了。C:每个人都要送别人一个礼物,不能送给自己。一个人必须收到一个礼物且送出一个礼物。已知有一些人明确要送给谁礼物了,但有些人不明确。给出任意一种可行的方案。保证一定有解。#include <bits/stdc++.h>using namespace std;const int N=2e5+5;int n,tot,tot2,cnt;int a[N],b[N],...原创 2020-01-22 22:19:13 · 114 阅读 · 0 评论