比赛名称: AtCoder Beginner Contest 245 比赛地址: Atcoder 比赛过程回顾 ABCDEFG 提交次数 1 1 1 1 0 0 0 首次提交时间 00:07:10 00:08:41 00:27:39 00:53:34 首A时间 00:07:10 00:08:41 00:27:39 00:53:34 部分题解与小结 C - Choose Elements 小评 刚拿到这题以为是一道很难的...
inline void solve() { int n, K; cin >> n >> K; vector a(n, vector<int>(2)); for (int i = 0; i < 2; i ++) for (int j = 0; j < n; j ++) cin >> a[j][i]; vector dp(n, vector<int>(2)); dp[0][0] = dp[0][1] = 1; for (int i = 1; i < n;...
AtCoder Beginner Contest 245 (A~G) ABC245A Good Morning 依照题意模拟即可。Code ABC245B Mex 依照题意模拟即可。Code ABC245C Choose Elements 将这些数看做2n2n个点,然后对每个1≤i<n1≤i<n,若|ai−ai+1|≤k|ai−ai+1|≤k则连边(i,i+1)(i,i+1),若|ai−bi+1|≤k−i+1则连边...
AtCoder Beginner Contest 402(A-F详细题解) A 思路:我们直接输出字符串中的大写字母即可。 代码:#include<bits/stdc++.h> using namespace std; #define int long long #define N 500010 signed main(){ string s;cin>>… 秋日薄雾 AtCoder Beginner Contest 403 A-G 简易题解,如果题解...
AtCoder Beginner Contest 244 C~F题解 https://blog.csdn.net/weixin_63785821/article/details/130149082 AtCoder Beginner Contest 242 F(组合数学) https://zhuanlan.zhihu.com/p/476659976 AtCoder Beginner Contest 242 补题记录 https://blog.csdn.net/bunny_1024/article/details/123305209 ...
AtCoder Beginner Contest 255 实况 (5题下班) https://www.bilibili.com/video/BV1JB4y1S7Jt/ Aising Programming Contest 2022(AtCoder Beginner Contest 255)实况 https://www.bilibili.com/video/BV1mY411K7PJ/ https://www.bilibili.com/video/BV1W3411g79S/ ...
AtCoder Beginner Contest 042题解(ABCD) 传送门 A - Iroha and Haiku (ABC Edition) 签到题,直接判断是否是两个 5 5 5,一个 7 7 7。 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int N=1e5+5,M=1e6+5,inf=0x3f3f3f3f,mod=1e9+7; ...
AtCoder Beginner Contest 044 题解 A - Tak and Hotels (ABC Edit) 题目大意: 住\(N\) 天旅馆,前 \(K\) 天每晚 \(X\) 元,接下来每晚 \(Y\) 元。问:一共花多少钱? 解题思路: 直接一个if判断即可。 示例程序: #include <bits/stdc++.h>...
·AtCoder Beginner Contest (ABC) 这是最频繁且最简单的入门赛,通常情况下每月至少举行2次。2019年4月27日(含)之前,每场比赛共4题,时长100分钟,满分1000分且Rating超过1199的选手不计Rating值。自2019年5月19日起改版升级为6道题目,时长不变,满分2100分且Rating值超过1999的选手不计Rating值。改版之后比赛质量...
题意: 题解 利用一个数能被3整除当且仅当其各位之和sum能被3整除。 如果sum本身能被3整除,则不需要删除。 否则统计原数的每一位数%3后的个数,比较%3 =1与%3 =2 的个数,有两种方法可以使其sum变为 %3 =0: %3=1 与%3=2,相互抵消,还剩下的差值即为答案。