A - Weekly Records Problem Statement 题意:告诉你有几个礼拜,问你每个礼拜走的路程和。 Solution 思路:按题意模拟,每7天加起来就行。 #include<bits/stdc++.h> using namespacestd; typedeflonglongll; intmain() { intn; cin>>n; ll sum =0; for(inti =1;i<=n*7;i++) { ll x; cin>>x;...
AtCoder Beginner Contest 307 A - Weekly Records (abc307 A) 题目大意 给定nn周每天的散步量,求每周七天的散步量的和。 解题思路 累计求和即可。 神奇的代码 #include<bits/stdc++.h> usingnamespacestd; usingLL =longlong; intmain(void){ ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);...
Tokio Marine & Nichido Fire Insurance Programming Contest 2023(AtCoder Beginner Contest 307) - AtCoderatcoder.jp/contests/abc307 A. Weekly Records A - Weekly Recordsatcoder.jp/contests/abc307/tasks/abc307_a 给定N 周中每天的跑步距离,要求输出每周跑步的总距离。 1≤N≤10 依题意计算即...
He has forgotten what day of the week it is today. Determine if it is possible for all of his $N$ plans to be scheduled on holidays. 思路:这道题思维较难,比D和E的思维难,题目说不知道现在是星期几,我们不妨设现在是第0天,然后通过取模,将他们压缩在一个周期即[0,A+B)中,此时去考察,此时...
59 -- 2:54 App AtCoder Beginner Contest 336C题Even Digits解法1 118 -- 4:24 App AtCoder Beginner Contest 334 C题 Socks 2 147 -- 17:03 App AtCoder Beginner Contest 326 C题讲解 86 -- 5:44 App AtCoder Beginner Contest 330 D题题解 1110 1 8:54 App AtcoderBetter 让Atcoder变...
AtCoder Beginner Contest 370(ABCDEF题)视频讲解 A - Raise Both Hands Problem Statement Takahashi decided to make takoyaki (octopus balls) and serve it to Snuke. Takahashi instructed Snuke to raise only his left hand if he wants to eat takoyaki, and only his right hand otherwise. ...
AtCoder Beginner Contest 342 A-G 讲解比赛地址:https://atcoder.jp/contests/abc342比赛时间: 2024-02-24(Sat) 20:00 - 2024-02-24(Sat) 21:40 (当地时间) (100 minutes)A Yay!:水题B Which is ahead?:水题C Many Replacement:模拟D S, 视频播放量 1857、弹幕量 2、
Atcoder Beginner Contest 335 讲解(A - F题) 蒟蒻小史 550 0 AtCoder Beginner Contest 369(A ~ G 题讲解) 蒟蒻小史 945 6 Atcoder Beginner Contest 339(A ~ G 讲解) 蒟蒻小史 498 0 AtCoder Beginner Contest 342(ABCDEFG) 蒟蒻小史 382 2 Atcoder Beginner Contest 340(A ~ F 讲解) 蒟蒻小...
AtCoder Beginner Contest 174 个人题解(ABC水题,D思维,E题经典二分,F离线树状数组),做完本期以后,最近就不会再发布AtCoder的往届比赛了(备战蓝桥杯ing)补题链接:HereABC题都是水题,这里直接跳过D-AlterAltar题意:一个R-W串,可以进行两种操作:1.交换任意两个
AtCoder Beginner Contest 178 个人题解(C组合问题 + 快速幂,D规律,E数学公式变形),补题链接:HereA-NotEditorial给出\(x=1\)则输出0;给出\(x=0\)则输出1利用x^1可以快速实现\(x\)的转换B-ProductMax比较端点乘积的大小即可C-Ubiquity题解:输入一个N,\(0<=A_i