A.First ABC 2模拟即可。 inlinevoidqfl_zzz(){ll n=read();string s=sread();for(ll i=1;i<=n-2;++i)if(s[i]=='A'&&s[i+1]=='B'&&s[i+2]=='C'){writen(i);return;}writen(-1);} B.Prefix and Suffix模拟即可。 inlinevoidqfl_zzz(){ll n=read(),m=read();string s=sr...
ABC 345 F - Many Lamps03-17 收起 AtCoder Beginner Contest 332A - Online Shopping代码:highlighter- cpp#include <bits/stdc++.h> using namespace std; typedef long long ll; const int N = 1e6 + 10; typedef pair<ll, ll> pii; void solve() ...
A - First ABC 2 解题思路 签到 Code #include <bits/stdc++.h> using namespace std; typedef long long LL; void solve() { int n; cin >> n; string s;
【赛题讲解】【AtCoder Beginner Contest 319 讲解(一)】D-MinimumWidth二分E-Bus https://www.bilibili.com/video/BV1yj411C7Jr/ Atcoder ABC321 A-F讲解 https://www.bilibili.com/video/BV1n8411i7mn/ AtCoder Beginner Contest 322 A 至 F 題讲解 by dreamoon ...
#define se second #define endl'\n'typedef long longLL;typedef pair<int,int>PII;typedef pair<LL,LL>PLL;constintN=1e6+3;constintINF=0x3f3f3f3f,mod=1e9+7;constdouble eps=1e-6,PI=acos(-1);string s[N];voidsolve(){int n;cin>>n;for(int i=0;i<n;i++)cin>>s[i];for(int ...
AtCoder Beginner Contest 166 A ~~E 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...
const int max_n = 5005; ll a[max_n]; ll aa[max_n]; //i番目までの要素の和 ll b[max_n]; //最初が休日で、i-1日連チャンで働く時の生産量の総和 ll dp[max_n]; int main() { //1-indexで考える //初期化 int n; cin >> n; repa(i, n)(void)scanf("%lld", &a[i...
ABC319 ABC320 ABC321 ABC322 ABC323 ABC324 ABC325 ABC326 ABC327 ABC328 ABC329 ABC330 ABC331 ABC332 ABC333 ABC334 ABC335 ABC336 ABC337 ABC338 ABC339 ABC340 ABC341 A.cpp B.cpp C.cpp D.cpp E.cpp ABC342 ABC343 ABC344 ABC345 ABC346 ABC347 ABC347_20240330 ABC348 ABC349 ABC350 ABC...
usage: ./atcoder-tools codegen [-h] [--without-login] [--lang LANG] [--template TEMPLATE] [--save-no-session-cache] [--config CONFIG] url positional arguments: url URL (e.g. https://atcoder.jp/contests/abc012/tasks/abc012_3) optional arguments: -h, --help show this help messa...
AtCoder Beginner Contest 322 Cranewilliams 天青色等烟雨,而我在等你 A - First ABC 2 c++库函数substr B - Prefix and Suffix c++库函数substr(没错,你没看错,同上) C - Festival 倒着维护一个dp值 D - Polyomino 有意思的一道模拟题 方格4*4,给足了想象空间。 我的思路很 simple 就是,枚举三个图...