結果

問題 No.2016 Countdown Divisors
ユーザー tamato
提出日時 2022-07-22 21:28:10
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 302 bytes
コンパイル時間 138 ms
コンパイル使用メモリ 82,556 KB
実行使用メモリ 76,404 KB
最終ジャッジ日時 2024-07-04 05:25:16
合計ジャッジ時間 2,667 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

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