結果

問題 No.2297 Best Grouping
コンテスト
ユーザー Shirotsume
提出日時 2023-03-13 01:59:37
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 29 ms / 2,000 ms
コード長 306 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 619 ms
コンパイル使用メモリ 85,632 KB
実行使用メモリ 53,760 KB
最終ジャッジ日時 2026-04-06 14:39:30
合計ジャッジ時間 1,690 ms
ジャッジサーバーID
(参考情報)
judge1_1 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import sys
from collections import deque, Counter
input = lambda: sys.stdin.readline().rstrip()
ii = lambda: int(input())
mi = lambda: map(int, input().split())
li = lambda: list(mi())
inf = 2 ** 63 - 1
mod = 998244353

n = ii()

if n % 3 == 0:
    print(0)
elif n % 3 == 1:
    print(2)
else:
    print(1)
0