結果

問題 No.2297 Best Grouping
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2023-05-18 22:04:18
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 44 ms / 2,000 ms
コード長 223 bytes
コンパイル時間 282 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 55,424 KB
最終ジャッジ日時 2024-05-09 18:56:51
合計ジャッジ時間 2,484 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

from collections import *
from itertools import *
from heapq import *
from functools import *
import sys,math
input = sys.stdin.readline

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