結果

問題 No.292 芸名
ユーザー hanorver
提出日時 2015-10-23 22:24:01
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 272 bytes
コンパイル時間 415 ms
コンパイル使用メモリ 55,004 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-22 17:06:44
合計ジャッジ時間 984 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#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){
		if(n < m){
			m--;
		}
		name.erase(name.begin() + m);
	}
	
	std::cout << name << std::endl;
	return 0;
}
0