結果
| 問題 |
No.292 芸名
|
| コンテスト | |
| ユーザー |
kotamanegi
|
| 提出日時 | 2015-12-22 23:27:36 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 575 bytes |
| コンパイル時間 | 710 ms |
| コンパイル使用メモリ | 74,468 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-18 18:49:34 |
| 合計ジャッジ時間 | 1,455 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include <stdio.h>
#include <algorithm>
#include <functional>
#include <cstring>
#include <queue>
#include <stack>
#include <math.h>
#include <iterator>
#include <vector>
#include <string>
#include <set>
#include <math.h>
#include <iostream>
using namespace std;
int main() {
string S;
cin >> S;
int t, u;
cin >> t;
cin >> u;
if (t == u) {
S.erase(S.begin() + (t));
}
else {
int x = min(t, u);
int y = max(t, u);
S.erase(S.begin() + (y));
S.erase(S.begin() + (x));
}
cout << S.substr(0) << endl;
}
kotamanegi