結果
| 問題 | No.292 芸名 | 
| コンテスト | |
| ユーザー |  tntan | 
| 提出日時 | 2015-10-26 23:57:15 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 436 bytes | 
| コンパイル時間 | 636 ms | 
| コンパイル使用メモリ | 70,736 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-09-13 03:36:22 | 
| 合計ジャッジ時間 | 1,291 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 10 | 
ソースコード
#include<iostream>
#include<algorithm>
#include<string>
#include<vector>
#include<set>
#include<sstream>
#include<iomanip>
#include<cctype>
using namespace std;
int main()
{
	int a, b;
	string s;
	cin >> s >> a >> b;
	if (a == b)
	{
		s.erase(a, 1);
		cout << s << 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;
	}
	return 0;
}
            
            
            
        