結果
問題 |
No.2297 Best Grouping
|
ユーザー |
|
提出日時 | 2023-03-13 01:59:37 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 40 ms / 2,000 ms |
コード長 | 306 bytes |
コンパイル時間 | 395 ms |
コンパイル使用メモリ | 81,844 KB |
実行使用メモリ | 53,888 KB |
最終ジャッジ日時 | 2024-09-18 07:19:02 |
合計ジャッジ時間 | 2,452 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 20 |
ソースコード
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)