codefocre
文章平均质量分 65
eva_can(not)survive
这个作者很懒,什么都没留下…
展开
-
#795 D Max GEQ Sum(单调栈+RMQ)
Problem - D - Codeforceshttps://codeforces.com/contest/1691/problem/D原创 2022-06-03 00:30:41 · 200 阅读 · 1 评论 -
CF1304C Air Conditioner(思维)
Air Conditioner - 洛谷https://www.luogu.com.cn/problem/CF1304C给定了初始温度,可以考虑维护一段室内空调的区间即[l-t,r+t]然后再根据每一时刻的客人适应的温度区间进行修改区间,如果当其不能再适应客人的区间时即为NO,否则为YES。#include <iostream>#include <cstdio>#include <string>#include <algorithm>#inc原创 2022-05-27 16:39:15 · 119 阅读 · 0 评论 -
codeforce round#784(div4) A-H
本人刚打cf几天,如果题解不清楚请谅解或在评论区留言,并感谢有div4场次让我能感受到AK的快乐Problem - A - CodeforcesCodeforces. Programming competitions and contests, programming communityhttps://codeforces.com/contest/1669/problem/AA题就不用多说了吧,就是for+if elseinline void solve() { int n; scanf("%原创 2022-04-22 17:59:25 · 1294 阅读 · 0 评论 -
codeforce round#782(div2) A-D
Problem - A - Codeforcesinline void solve() { int cnt = 1; int k = r / (b + 1); int res = r % (b + 1); for (int i = 1; i <= b + 1; i++) { for (int j = 1; j <= k; j++) { printf("R"); } if (res-- > 0) { printf("R"); } if (i &l原创 2022-04-20 20:34:39 · 439 阅读 · 0 评论 -
codeforce round#783(div2) A-C
Problem - A - CodeforcesCodeforces. Programming competitions and contests, programming communityhttps://codeforces.com/contest/1668/problem/Ainline void solve() { if (n > m) { swap(n, m); } if (n == 1) { if (m > 2) { printf("-1\n"); r原创 2022-04-20 10:04:48 · 328 阅读 · 0 评论