CF
dsrics
今朝有酒今朝醉
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Codeforces Round #605 (Div. 3)
原题地址 A题意就是有三个人,每个人都只能移动一次或者不移动,问他们三个之间的距离最小是多少 思路:通过排序找出找出中间值,最小值和最大值,然后先判断其中是否有相等的存在,如果只有一个最大值(也就是其他两个相等)那么就是那两个数一起移动,只有一个最小值原理相同,否则就是最小值和最大值同时往中间移动 #include<bits/stdc++.h> using namespace std;...原创 2019-12-17 00:03:04 · 176 阅读 · 0 评论 -
Codeforces Round #604 (Div. 2)
原题地址 A题 题意就是让你用A,B,C三个小写字母来代替?,使得字符串相同字母不连在一起 思路:简单模拟。(比赛的时候想复杂了) 代码: #include<bits/stdc++.h> #define ll long long using namespace std; int arr[1000000]; int brr[1000000]; int crr[1000000]; int...原创 2019-12-07 12:58:17 · 197 阅读 · 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 long using namespace std; ll arr[100]; int main() { i...原创 2019-12-02 00:20:54 · 227 阅读 · 1 评论
分享