結果
| 問題 |
No.292 芸名
|
| コンテスト | |
| ユーザー |
Eclair1015
|
| 提出日時 | 2018-09-05 22:39:43 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 545 bytes |
| コンパイル時間 | 950 ms |
| コンパイル使用メモリ | 64,508 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-15 17:23:30 |
| 合計ジャッジ時間 | 1,374 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
//inlclude前用define
#define _USE_MATH_DEFINES
//include
#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<cmath>
using namespace std;
//typedef
typedef vector<int> VI;
typedef vector<string> VS;
typedef vector<char> VC;
int main() {
string s;
cin >> s;
int t, u;
cin >> t >> u;
if (t == u) {
s.erase(s.begin() + t);
}else {
if (u < t) {
s.erase(s.begin() + t);
s.erase(s.begin() + u);
} else {
s.erase(s.begin() + u);
s.erase(s.begin() + t);
}
}
cout << s << endl;
return 0;
}
Eclair1015