In this case, the value will change as follows: 1→ 2→ 4→ 8→ 16→ 26→ 36→ 46→ 56→ 66→ 76. By the way, this contest is AtCoder Beginner Contest 076. #include<algorithm> #include<iostream> #include<cstdio> #include using namespace std; int main(){ int n, k; int a ...
AtCoder Beginner Contest 076C 题解 原内容摘自: 这里 (我的号,没有抄袭哦) 说句闲话o(~︶~)o 这道题目其实非常简单,我在看完题目之后就想到了正解,注意啊是正解! 但后来想想,觉得这道题目其实有很多坑,所以我来写一篇正解题解。 题目大意 原题链接 大概意思就是给你一个字符串s和一个字符串t...
1、今晚(5月17日)20点在B站开始 AtCoder 初学者竞赛 353 比赛题解直播讲解 2、本周日(5月19日)晚上19点在B站开始 AtCoder Beginner Contest 354的题解直播讲解 3、观看方式: 复制下方链接或直接扫描二维码,PC端建议使用chrome浏览器 https://live.bilibili.com/21371611?live_from=84002 或识别下方二维码查看:...
AtCoder Beginner Contest 267 题解 A - F 今天是被乱杀的一天,B题看不懂qwq。 进入正题: A - Saturday 签到 题意: 告诉你今天是星期几,求该距离周末还有多久。 分析: 计算到周六差几天即可。 时间复杂度:O(1) 代码: voidsolve(){string s;cin>>s;if(s[0]=='M')cout<<5;elseif(s[0]=='T...
AtCoder Beginner Contest 067(CD) AtCoder Beginner Contest 067(CD) C - Splitting Pile 思路:预处理前后缀,暴力即可。 D - Fennec VS. Snuke 思路:考虑所有点到1 , n 1,n1,n的距离,谁的距离较小这个点就属于谁。 距离相同属于先手,因为先手可以先走一步。
AtCoder Beginner Contest 167 题解 A - Registration 题意: 给两个仅由小写字母构成的字符串AB,问B是否是在A上添加一个小写字母构成的。 思路: 直接判断即可,保险起见多写了些特判。 int main() { IOS; string s1, s2; cin >> s1 >> s2;
int tim = b; while (tim != c) { tim ++; if (tim == 24) tim = 0; ve.push_back(tim); } bool ok = 0; for (auto x : ve) { if (x == a) ok = 1; } if (ok) { cout << "No" << '\n'; } else { cout << "Yes" << '\n'; ...
AtCoder Beginner Contest 401 A-G 简易题解,如果题解中有什么问题可以找我反馈,谢谢!(感觉这次格式搞得有点怪,回头再调下) A.Status Code直接判断即可。 int main(){ int n; cin >> n; if(n >= 200 &… 枫落发表于Atcod... Atcoder Education DP Contest 很好的 Atcoder 的 DP ...
AtCoder Beginner Contest 376(A ~ F 题讲解), 视频播放量 481、弹幕量 2、点赞数 23、投硬币枚数 14、收藏人数 4、转发人数 1, 视频作者 蒟蒻小史, 作者简介 QQ 群:632491357,相关视频:AtCoder Beginner Contest 378(A ~ F 题讲解),AtCoder Beginner Contest 370(
AtCoder Beginner Contest 167 (A~F,DEF Good) https://atcoder.jp/contests/abc167/tasks AB水题, C - Skill Up 题意: 初始时 \(m\) 个算法的能力均为 \(0\),\(n\) 次中每次可以花费 \(c_i\) 元提升 \(m\) 个算法的能力(提升程度可能不等),问 \(m\) 个算法能力都提升到...