結果
問題 |
No.292 芸名
|
ユーザー |
![]() |
提出日時 | 2017-02-07 16:18:00 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 309 bytes |
コンパイル時間 | 1,397 ms |
コンパイル使用メモリ | 159,512 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-24 13:08:31 |
合計ジャッジ時間 | 2,001 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
#include <bits/stdc++.h> #include <iostream> #include <string> #include <stdlib.h> using namespace std; int main() { string s; int a,b; cin>>s>>a>>b; if(a==b){ cout<<s.erase(a,1)<<endl; }else if(a<b){ s.erase(a,1); s.erase(b-1,1); cout<<s<<endl; }else{ s.erase(a,1); s.erase(b,1); cout<<s<<endl; } }