結果

問題 No.2297 Best Grouping
ユーザー NakuruNatsukiNakuruNatsuki
提出日時 2023-05-19 00:49:17
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 54 ms / 2,000 ms
コード長 191 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 6,944 KB
実行使用メモリ 39,296 KB
最終ジャッジ日時 2024-05-09 20:07:48
合計ジャッジ時間 2,850 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
39,040 KB
testcase_01 AC 49 ms
39,040 KB
testcase_02 AC 48 ms
39,040 KB
testcase_03 AC 48 ms
39,168 KB
testcase_04 AC 54 ms
39,040 KB
testcase_05 AC 50 ms
39,168 KB
testcase_06 AC 49 ms
39,040 KB
testcase_07 AC 50 ms
39,168 KB
testcase_08 AC 52 ms
39,168 KB
testcase_09 AC 50 ms
39,040 KB
testcase_10 AC 50 ms
39,040 KB
testcase_11 AC 48 ms
39,040 KB
testcase_12 AC 50 ms
39,040 KB
testcase_13 AC 50 ms
39,040 KB
testcase_14 AC 49 ms
39,040 KB
testcase_15 AC 48 ms
39,168 KB
testcase_16 AC 49 ms
39,296 KB
testcase_17 AC 49 ms
39,040 KB
testcase_18 AC 48 ms
39,040 KB
testcase_19 AC 49 ms
39,168 KB
testcase_20 AC 52 ms
39,296 KB
testcase_21 AC 50 ms
39,168 KB
testcase_22 AC 52 ms
39,296 KB
testcase_23 AC 48 ms
39,168 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

var [num,] = require("fs").readFileSync("/dev/stdin","utf8").trim().split("\n")
num=Number(num)
m=num%3
if(m==1){
	console.log(2)
} else if (m==2) {
	console.log(1)
} else {
	console.log(0)
}
0