ABC394 A 枚举串中的所有字符,是 2 的输出就行。 submission. B 就按题意说的,按长度为关键字排序即可。 submission. C 我们使用 std::string::find() 函数,每次从上一次查找到的 WA 的位置的前一个(因为可能会产生新的 AC),总时间复杂度同理双指针,加上 pos 回移了 O(n) 次,总复杂度 O(n)。
题目:Palindromic Shortest Path 题目链接:https://atcoder.jp/contests/abc394/tasks/abc394_e 题意:给你一个有向图的邻接矩阵C,Cij='-'代表从点i到点j没有边,否则Cij代表点i到点j的边上的字母,试问对于每一个点对(i,j)间的所有连通路径,是否存在由连通路径上的字母组成的字符串是回文串(含空串)的情...
KAJIMA CORPORATION CONTEST 2025 (AtCoder Beginner Contest 394) - AtCoderatcoder.jp/contests/abc394 2025/2/22 A. 22222 //A #include<bits/stdc++.h> using namespace std; #define int long long #define endl '\n' signed main(){ ios::sync_with_stdio(0); cin.tie(0); string s; ci...
AtCoder Beginner Contest 394 A-G 简易题解,如果题解中有什么问题可以找我反馈,谢谢! A.22222 遍历字符串,只输出 即可。 signed main(){ string s; cin >> s; for(int i = 0; i < s.size(); i++){ if(s[i] == '2') cout <<…阅读全文 赞同23 添加评论 分享收...
2冠最速(パフォ)2冠最遅(パフォ)C問題のdiff ABC362 461 139 521 ABC360 360 283 約800 ABC359 721 89 828 ABC352 221 136 136 ABC350 507 136 394はい。こんな感じです。 回によっては差は100以下の時もありますが、ひどいときには600以上も差がつきます。そのため、早解きは大事なので...
题目列表: 题目地址:https://atcoder.jp/contests/abc394/tasks ABC394 题解(文字版) === 题库地址:https://atcoder.jp 针对每周六20:00举办的ABC比赛,我们每周日都会对比赛直播。
【小码匠自习室】继续学习imos:AtCoder ABC183 - D - Water Heater https网络安全 有N个人。第 i 个人计划从时间 S 到 T (不包括时间 T )每分钟从这个热水器使用 P 升水。热水很快冷却下来,所以你不能储存它。 小码匠 2022/12/06 3940 【小码匠自习室】鸡汤有毒:ARC154 - B - New Place ...
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 AHC ARC EDPC OTHERS memo 競プロ典型90題 精選100問 comfused.md readme.mdBreadcrumbs atcoder_codes /ABC /300 / 350/ Directory actions More optionsLa...
394 395 396 397 398 399 400 ABC_別解 AGC AHC ARC EDPC OTHERS memo 競プロ典型90題 精選100問 comfused.md readme.md Breadcrumbs atcoder_codes /ABC /300 / 360/ Directory actions More options Latest commit Cannot retrieve latest commit at this time. HistoryHistory Folders and files Name Last...
A 水题: #include<iostream> using namespace std; int main(){ string s; cin>>s; if(s=="ABC") cout<<"ARC"<<endl; else cout<<"ABC"<<endl; return 0; } B 水题: 主要是看懂就行,两个单词容易混淆,所以看样例理解比较好 #include<iostream> #define maxn 105 using namespace std; bool...