在刚刚这场codeforces之前,我的大号经历了两个月的折磨掉了近200分到了1512,小号也被我故意掉分掉成了1250。结果今天凌晨打出了人生巅峰,大小号同时进入全球前400名,一个250行的模拟直接一次性过。凌晨的时候显示大号能+120回1630,小号能+220回1450。由于两个号交的代码差不多,于是干脆用大模拟C2把小号hack了,但是凌晨的时候非常担心会不会小号先hack掉大号呢。结果竟然大小号都没被hack???
相关推荐
打 codeforces 用的
我目前的级别大概只需要这些: ll q_pow(ll a, ll b, ll p) { ll ret = 1; for (; b; a = a * a % p, b >>= 1) if (b & 1) ret = ret * a % p; return ret; } ll inv(ll x, ll p) { return q_pow(x, p - 2, p); } int tree[MAXN]; inline int lowbit(int x) { return x & -x; } void insert(int pos, int k) { for (; pos <= N; po
Codeforces Round #590 (Div. 3) (迷惑行为大鉴)
谁又不是个智障呢A水题B简单模拟C 成为马里奥D 找不同E 猜题意F 旋转跳跃我闭着眼 A水题 乱搞 #include<cstdio> #include<iostream> #define ll long long using namespace std; int main() { int T;cin>>T; while(T--) { ...
Codeforces 题库 201-294
Codeforces 题库 201-294 共~500题 codeforces.com版权所有。 程序可提交至该网站评测。
codeforces 426/B
B. Sereja and Mirroring time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Let's assume that we are given a mat
[codeforces 1300D] Aerodynamic 几何+中心对称+非中心对称+(map,pair)查重+除法避免不整除的技巧
[codeforces 1300D] Aerodynamic 几何+中心对称+非中心对称+(map,pair)查重+除法避免不整除的技巧 总目录详见https://blog.csdn.net/mrcrack/article/details/103564004 在线测评地址https://codeforces.com/contest/1300/problem/D Problem Lang...
Codeforces查看被Hack的测试数据
需求 在Codeforces上如果自己的算法通过了系统测试,但是被人hack了,想查看hack所用的数据。 步骤 一、点击自己的Submissions 二、找到被Hack的题 三、用鼠标滚轮(注意不是左键)单击最左侧的题号“33733237” 四、在新打开的页面中,点击“View Test”,即可看到测试数据 更多内容请关注微信公众号 ...
Codeforces Round #684 (Div. 2)
Codeforces Round #684 (Div. 2) A. Buy the String #include <bits/stdc++.h> #define int ll using namespace std; typedef long long ll; const int maxn=2e5+5; void solve() { int n,c1,c0,h,sum=0; cin>>n>>c0>>c1>>h; c0=m
Codeforces Round #684 (Div. 2) E. Greedy Shopping
Codeforces Round #684 (Div. 2) E. Greedy Shopping 题意 给一个非严格递减的整数数组 a1,a2,…,ana_1,a_2,\dots,a_na1,a2,…,an ,表示商店的 nnn 个商品的价格。请处理 qqq 个两种类型的查询: 1 x y1\space x \space y1 x y ,表示将标号为 1,2,…,x1,2,\dots,x1,2,…,x 的商品价格更改为 max(ai,y)max(a_i,y)
Codeforces Round #684 (Div. 2) 题解
题目链接:Codeforces Round #684 (Div. 2) A. Buy the String 贪心 int main() { int t; cin >> t; while(t--) { int n,c0,c1,h; cin >> n >> c0 >> c1 >> h; string s; cin >> s; int ans=0; if(c0>c1) { if(h+c1<
CF1439 Codeforces Round #684 (Div. 1)
CF 1439 Codeforces Round #684 (Div. 1) A1 题意 一个0 / 1二维矩阵,每次操作可以选一个四宫格,并将其中三个数取反,找到在3nm步骤内将矩阵变成全0矩阵的方法。 思路 如果执行上图中的三个操作,四宫格内只有一个位置被操作了奇数次,其他位置都被操作了偶数次,因而相当于没有改变。因此,只需对每一个为1的位置都进行类似的操作就可以了。 A2 题意 一个0 / 1二维矩阵,每次操作可以选一个四宫格,并将其中三个数取反,找到在nm步骤内将矩阵变成全0矩阵的方法。 思路
Codeforces Round #683 (Div. 2)A-D题题解
A. Add Candies 题目传送门: A. Add Candies 题目大意: 给你一个n,表示1~n的序列。你可以进行m次操作,每次操作需选中一个其中的一个数,第 j 次操作可以让除了被选中的数的其他所有数加 j 。问你如何构造这样的m次操作使得最后所有数都相等,(操作次数不要求最小)。 思路: 只要使所有数变成1+2+3+……n即可。 AC Code #include<bits/stdc++.h> using namespace std; int main() { int t
Codeforces Round #654 (Div. 2)
Codeforces Round #684 (Div. 2) A - Buy the String 贪心模拟 #include <stdio.h> #include <iostream> #include <cstring> #include <algorithm> #include <cmath> #include <queu...
Codeforces Round #684 (Div. 2) A——C2
A. Buy the String 题目传送门: A. Buy the String 题目大意: 给你一个01字符串,购买0需要花费C0,购买1需要花费C1,01之间进行转换需要花费h。问购买整个字符串的花费。 思路: 只有 max(C0,C1) > min(C0,C1)+h时才有必要进行转换。 AC Code #include<bits/stdc++.h> using namespace std; int a[1005]; int main() { int t; scan
Codeforces Round #684 (Div. 2)题解
A. Buy the String 题解: 循环一遍判断是否转换哪个更便宜即可 代码: /* * @Author : Nightmare */ #include <bits/stdc++.h> using namespace std; #define ll long long #define ull unsigned long long #define PII pair<int,int> #define ls 2 * rt #define rs 2 * rt + 1 #defin
Codeforces Round #684 (Div. 2) 简要题解
脑子需要清楚,不要乱写
Codeforces Round #645 (Div. 2) May/26/2020 22:35UTC+8
Codeforces Round #645 Div. 2C. Celex UpdateD. The Best VacationE. Are You Fired? 比赛链接 https://codeforces.com/contest/1358 比赛记录 https://blog.csdn.net/cheng__yu_/article/details/105395197 C. Celex Update #include <bits/stdc++.h> #define ll long long u
361




被折叠的 条评论
为什么被折叠?



