結果
問題 | No.292 芸名 |
ユーザー | gotutiyan |
提出日時 | 2017-09-29 15:28:51 |
言語 | C++14 (gcc 12.3.0 + boost 1.83.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 650 bytes |
コンパイル時間 | 708 ms |
コンパイル使用メモリ | 79,104 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-04-27 16:19:25 |
合計ジャッジ時間 | 1,340 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
5,248 KB |
testcase_01 | AC | 2 ms
5,376 KB |
testcase_02 | WA | - |
testcase_03 | RE | - |
testcase_04 | AC | 2 ms
5,376 KB |
testcase_05 | AC | 2 ms
5,376 KB |
testcase_06 | AC | 2 ms
5,376 KB |
testcase_07 | AC | 2 ms
5,376 KB |
testcase_08 | AC | 1 ms
5,376 KB |
testcase_09 | AC | 2 ms
5,376 KB |
testcase_10 | AC | 1 ms
5,376 KB |
testcase_11 | AC | 2 ms
5,376 KB |
testcase_12 | RE | - |
ソースコード
#include <iostream> #include <string> #include <vector> #include <cmath> #include <fstream> #include <set> #include <utility> #include <algorithm> #define rep(i,p,n) for(int i=p;i<n;i++) #define lli long long int #define vi vector<int> using namespace std; int max(int x, int y) { int a; (x > y) ? a = x : a = y; return a; } int min(int x, int y) { int a; (x < y) ? a = x : a = y; return a; } int main() { string s; cin >> s; int n, m; cin >> n >> m; if (n == m) s.erase(s.begin() + n); else { s.erase(s.begin() + n); s.erase(s.begin() + m-1); } for (int i = 0; i < s.length(); i++)cout << s[i]; cout << endl; return 0; }