abc292[AtCoder Beginner Contest 292] 题解 写点题目转换下心情吧 A-CAPS LOCK 大水题 B-Yellow and Red Card 大水题 C-Four Variables 给定一个数NN,问有多少个有序正数数组(A,B,C,D)(A,B,C,D),满足A×B+C×D=NA×B+C×D=N。 这题荒芜的大脑拒绝思考,看着复杂度不超,写了O(N√N)O(NN...
AtCoder Beginner Contest 292 [A - F](改) A - CAPS LOCK# 思路# 不说,非常simple的题。转大小写肯定都会吧 代码# #include <bits/stdc++.h> using namespace std; string str; int main() { cin >> str; for (int i = 0; i < str.length(); i++) if (str[i] >= 'a' && str[i...
AtCoder Beginner Contest 269「A」「B」「C 二进制枚举」「D 暴力dfs」「E 二分答案」「F 等差数列+推式子」 https://suryxin.blog.csdn.net/article/details/126974824 AtCoder Beginner Contest 269(E-EX) https://www.bilibili.com/opus/707445585544740886 ...
试图引流.jpgF把题看错了,搞了半天。, 视频播放量 488、弹幕量 0、点赞数 20、投硬币枚数 1、收藏人数 4、转发人数 0, 视频作者 grass8cow, 作者简介 菜菜,相关视频:AtCoder Beginner Contest 293 7题,rk89,真耻辱。,AtCoder Beginner Contest 349 rk11,AtCoder Begi
AtCoder Beginner Contest 174 题解 AtCoder Beginner Contest 174 题解C Repsept 知识点:取模对加法和乘法封闭,所以暴力到2×1062\times 10^62×106,一边取模一边特判即可。D - Alter Altar 最终肯定是RRR全在左边,简单证明:假设最终RRR左边的某个位置存在WWW,则该位置右边只能是WWW,然后就是子问题了...
AtCoder Beginner Contest 193 部分题解 E - Oversleeping 求是否存在\(t\)满足\(t=t_1(mod (2X+2Y)) and t=t_2(mod (P+Q))\) 注意到\(Q\)和\(Y\)非常小,直接枚举套个\(exCRT\)就行了(虽然赛场上没看出来,\(exCRT\)也忘了记得快速乘...
Did you enjoy the AtCoder Beginner Contest 128? A Japanese editorial is already out, but unfortunately there is no English editorial, so I translated it into English experimentally. Note that this is an unofficial one; AtCoder has no responsibility for this editorial. Also, I didn't do ...
We will hold AtCoder Beginner Contest 199(Sponsored by Panasonic). Start Time: Duration: 100 minutes Number of Tasks: 6 Writer:evima, kyopro_friends,QCFium,satashun,YoshikaMiyafuji Rated range: ~ 1999 If any of the vertices of a component have degree 3 or higher so our total answer is ...
分析:将AB看成L,CD看成R,问L+R=N分别对,L,R分解质因数。最后两边乘起来。 voidGrainrain(){intn;cin>>n;intans=0;for(inti=1;i<n;i++){intl=i,r=n-i;intx=0;for(intj=1;j*j<=l;j++){if(l%j==0){x++;if(l!=j*j)x++;}}inty=0;for(intj=1;j*j<=r;j++){if(r%j==0...
AtCoder Beginner Contest A-F 简易题解,如果题解中有什么问题可以找我反馈,谢谢! A.CBC直接枚举整个字符串,只输出大写字母即可。 int main(){ string s; cin >> s; for(int i = 0 ; i < s.size(); i++){… 枫落发表于Atcod... AtCoder Beginner Contest 400 A-F LHao AtCoder...