![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
CF
dsrics
今朝有酒今朝醉
展开
-
Codeforces Round #605 (Div. 3)
原题地址A题意就是有三个人,每个人都只能移动一次或者不移动,问他们三个之间的距离最小是多少思路:通过排序找出找出中间值,最小值和最大值,然后先判断其中是否有相等的存在,如果只有一个最大值(也就是其他两个相等)那么就是那两个数一起移动,只有一个最小值原理相同,否则就是最小值和最大值同时往中间移动#include<bits/stdc++.h>using namespace std;...原创 2019-12-17 00:03:04 · 127 阅读 · 0 评论 -
Codeforces Round #604 (Div. 2)
原题地址A题题意就是让你用A,B,C三个小写字母来代替?,使得字符串相同字母不连在一起思路:简单模拟。(比赛的时候想复杂了)代码:#include<bits/stdc++.h>#define ll long longusing namespace std;int arr[1000000];int brr[1000000];int crr[1000000];int...原创 2019-12-07 12:58:17 · 136 阅读 · 0 评论 -
Codeforces Round #603 (Div. 2)
原题地址A. Sweet Problem题意:问你最多能吃几天的糖果思路:暴力存在a+b<c时一定只能吃a+b其他情况看样例硬推出a+b+c/2(比赛的时候很迷)代码:#include<bits/stdc++.h>#define ll long longusing namespace std;ll arr[100];int main(){ i...原创 2019-12-02 00:20:54 · 154 阅读 · 1 评论