結果

問題 No.292 芸名
ユーザー togatogatogatoga
提出日時 2016-04-25 19:42:18
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 65 ms / 2,000 ms
コード長 359 bytes
コンパイル時間 35 ms
コンパイル使用メモリ 6,816 KB
実行使用メモリ 39,168 KB
最終ジャッジ日時 2024-04-21 01:18:39
合計ジャッジ時間 1,431 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 63 ms
38,784 KB
testcase_01 AC 65 ms
39,168 KB
testcase_02 AC 62 ms
39,040 KB
testcase_03 AC 61 ms
38,784 KB
testcase_04 AC 65 ms
39,168 KB
testcase_05 AC 62 ms
39,168 KB
testcase_06 AC 62 ms
38,912 KB
testcase_07 AC 61 ms
39,040 KB
testcase_08 AC 61 ms
39,040 KB
testcase_09 AC 61 ms
39,040 KB
testcase_10 AC 62 ms
39,168 KB
testcase_11 AC 61 ms
39,168 KB
testcase_12 AC 63 ms
38,784 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main(input) {
	input = input.split("\n");
	var tmp = input[0].split(" ");
	var s = tmp[0];

	var a = parseInt(tmp[1], 10);
	var b = parseInt(tmp[2], 10);

	var res = "";
	for (var i = 0; i < s.length; i++){
		if (i == a || i == b){
			continue;
		}
		res += s[i];
	}
	console.log("%s", res);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
0