結果
| 問題 |
No.292 芸名
|
| コンテスト | |
| ユーザー |
hanorver
|
| 提出日時 | 2015-10-23 22:22:54 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 254 bytes |
| コンパイル時間 | 439 ms |
| コンパイル使用メモリ | 55,344 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-22 11:47:02 |
| 合計ジャッジ時間 | 1,330 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 8 RE * 2 |
ソースコード
#include<iostream>
#include<string>
int main() {
std::string name;
std::cin >> name;
int n,m;
std::cin >> n >> m;
name.erase(name.begin() + n);
if(n != m){
m--;
name.erase(name.begin() + m);
}
std::cout << name << std::endl;
return 0;
}
hanorver