結果
問題 | No.292 芸名 |
ユーザー |
|
提出日時 | 2022-01-10 20:46:44 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 445 bytes |
コンパイル時間 | 3,983 ms |
コンパイル使用メモリ | 260,240 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-15 02:07:35 |
合計ジャッジ時間 | 4,730 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
//No.292 芸名 #pragma GCC optimize("O3") #pragma GCC target("avx") #include <bits/stdc++.h> #define rep(i ,n) for(int i=0;i<(int)(n);++i) using namespace std; signed main(){ string s; int t , u; cin >> s >> t >> u; if( t < u){ s.erase(t , 1); s.erase( u - 1 , 1); } else if( u < t){ s.erase( u , 1); s.erase( t - 1 , 1); } else { s.erase( u , 1); } cout << s << endl; }