結果

問題 No.2297 Best Grouping
ユーザー 👑 H20H20
提出日時 2023-05-19 09:04:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 70 ms / 2,000 ms
コード長 85 bytes
コンパイル時間 272 ms
コンパイル使用メモリ 87,048 KB
実行使用メモリ 71,200 KB
最終ジャッジ日時 2023-08-22 17:41:00
合計ジャッジ時間 3,189 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,164 KB
testcase_01 AC 69 ms
71,124 KB
testcase_02 AC 68 ms
70,892 KB
testcase_03 AC 68 ms
71,124 KB
testcase_04 AC 69 ms
70,892 KB
testcase_05 AC 68 ms
71,180 KB
testcase_06 AC 68 ms
71,124 KB
testcase_07 AC 69 ms
70,904 KB
testcase_08 AC 68 ms
71,184 KB
testcase_09 AC 69 ms
71,192 KB
testcase_10 AC 69 ms
71,180 KB
testcase_11 AC 70 ms
70,712 KB
testcase_12 AC 69 ms
70,888 KB
testcase_13 AC 68 ms
71,188 KB
testcase_14 AC 68 ms
71,120 KB
testcase_15 AC 69 ms
70,996 KB
testcase_16 AC 69 ms
70,904 KB
testcase_17 AC 68 ms
71,200 KB
testcase_18 AC 69 ms
70,972 KB
testcase_19 AC 68 ms
71,016 KB
testcase_20 AC 68 ms
70,964 KB
testcase_21 AC 68 ms
70,944 KB
testcase_22 AC 68 ms
71,012 KB
testcase_23 AC 69 ms
71,004 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
if N%3==0:
    print(0)
elif N%3==1:
    print(2)
else:
    print(1)
0