結果
問題 |
No.292 芸名
|
ユーザー |
|
提出日時 | 2018-07-21 12:29:59 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 292 bytes |
コンパイル時間 | 492 ms |
コンパイル使用メモリ | 54,344 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-12-26 04:46:49 |
合計ジャッジ時間 | 9,009 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 4 WA * 3 RE * 1 TLE * 2 |
ソースコード
//No.292 芸名 #include<string> #include<iostream> using namespace std; int main() { string S; cin >> S; int t, u; cin >> t >> u; if (t > u) { S.erase(S.begin() + t); S.erase(S.begin() + u); } else { S.erase(S.begin() + t); S.erase(S.begin() + u); } cout << S; return 0; }