Atcoder ABC 370题解 前言本题解部分思路来源于网络,仅供参考。A - Raise Both Hands题目大意如果SnuckSnuck 想吃章鱼烧则只举起左手,如果不想吃章鱼烧则只举起右手。如果同时举起或放下两只手则输出 Invalid。解题思路根据题意模拟即可。code#include <bits/stdc++.h> using namespace std; int main() { int...
AtCoder (ABC 371)比赛将于本周六(9月14日)晚20:00进行,同学们参与比赛后可在本周日晚 19:00进入继续到直播间观看题目解析。 本次比赛讲解老师:北京大学周老师(NOI2018 银牌) https://live.bilibili.com/21371611?live_from=84002 ABC370比赛真题讲解 题目列表: 题目地址:https://atcoder.jp/contests/abc3...
1.ATcoder ABC 357 补题记录(A~F)2024-06-082.ATcoder ABC 358 补题记录(A~D,G)2024-06-153.AtCoder Beginner Contest 359 补题记录(A~E,G,G 暂无代码)2024-06-224.AtCoder Beginner Contest 361 补题记录(A~F)2024-07-065.AtCoder Beginner Contest 362 补题记录(A~E,G)2024-07-136.AtCoder...
live_from=84002 ABC371比赛真题讲解 题目列表: 题目地址:https://atcoder.jp/contests/abc370/tasks ABC371题解(文字版) ►A代码 参考代码 #include<bits/stdc++.h> intmain{charab,ac,bc;scanf("%c %c %c",&ab,&ac,&bc);if(ab != ac){puts("A");}elseif(ab==bc){puts("B");}else{...
ABC340 A.cpp B.cpp C.cpp D.cpp E.cpp ABC341 ABC342 ABC343 ABC344 ABC345 ABC346 ABC347 ABC347_20240330 ABC348 ABC349 ABC350 ABC351 ABC352 ABC353 ABC354 ABC355 ABC356 ABC357 ABC358 ABC359 ABC360 ABC360_2 ABC361 ABC362 ABC363 ABC364 ABC365 ABC366 ABC367 ABC368 ABC369 ABC370_20...
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 373 D - G D.Hidden Weights建双向边,跑 就可以了#include <bits/stdc++.h> using ll = long long; int main() { std::ios::sync_with_stdio(false); std::cin.tie(0);… 阅读全文 AtCoder Beginner Contest 370 A - F ...
ABC350_D.py ABC350_E.py ABC350_F.py ABC350_G.py 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 ABC_別解 AGC...
A - Raise Both Hands (abc370 A)题目大意给出Snuke举的左右手情况,如果只举左手,输出Yes,如果只举右手,输出No,否则输出Invalid。解题思路逐一判断即可。神奇的代码 #include <bits/stdc++.h> using namespace std; using LL = long long; int main(void) { ios::sync_with_stdio(false); cin.tie(0...
ABC 338-D题目大意:给定一个长度为 n 的环,以及一个长度为 m 的序列,现在需要在这个环上断掉一条边,问在最佳情况下,顺次走完(可以重复)序列中每一个点所需经过的最小边数。解法:比赛中的做法不知道为什么一直炸,炸的还挺离谱。考虑枚举断掉的边然后计算贡献。对于序列中相邻的两个数,设小的为 a ,大的...