結果

問題 No.2016 Countdown Divisors
ユーザー 👑 tamatotamato
提出日時 2022-07-22 21:28:10
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 116 ms / 2,000 ms
コード長 302 bytes
コンパイル時間 783 ms
コンパイル使用メモリ 86,868 KB
実行使用メモリ 77,416 KB
最終ジャッジ日時 2023-09-17 08:51:35
合計ジャッジ時間 4,064 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,040 KB
testcase_01 AC 109 ms
77,040 KB
testcase_02 AC 109 ms
77,024 KB
testcase_03 AC 108 ms
77,416 KB
testcase_04 AC 104 ms
77,044 KB
testcase_05 AC 104 ms
77,140 KB
testcase_06 AC 91 ms
76,972 KB
testcase_07 AC 94 ms
77,072 KB
testcase_08 AC 109 ms
76,956 KB
testcase_09 AC 109 ms
76,956 KB
testcase_10 AC 107 ms
76,972 KB
testcase_11 AC 109 ms
77,040 KB
testcase_12 AC 109 ms
76,976 KB
testcase_13 AC 111 ms
77,028 KB
testcase_14 AC 111 ms
77,292 KB
testcase_15 AC 109 ms
77,144 KB
testcase_16 AC 116 ms
76,868 KB
testcase_17 AC 116 ms
77,092 KB
testcase_18 AC 113 ms
77,064 KB
testcase_19 AC 72 ms
70,948 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 998244353


def main():
    import sys
    input = sys.stdin.readline
    
    ans = [0, 1, 2, 1, 1, 1, 2, 1, 1, 2]
    for _ in range(int(input())):
        N = int(input())
        if N >= 10:
            print(2)
        else:
            print(ans[N])


if __name__ == '__main__':
    main()
0