結果

問題 No.292 芸名
ユーザー itezpace
提出日時 2016-05-13 17:52:04
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 333 bytes
コンパイル時間 1,336 ms
コンパイル使用メモリ 158,984 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-05 14:38:31
合計ジャッジ時間 2,239 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 8 RE * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
#define REP(i, a, b) for(int i=a;i<b;++i)

int main(){
  string S;
  int t, u;
  cin >> S >> t >> u;
  if(t==u){
    S.erase(t,1);
  } else {
    S.erase(t,1);
    S.erase(u-1,1);
  }
  for(char x: S) cout << x;
  cout << endl;
  return 0;
}
0