結果

問題 No.2016 Countdown Divisors
ユーザー 👑 H20H20
提出日時 2022-07-22 21:53:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 304 ms / 2,000 ms
コード長 431 bytes
コンパイル時間 296 ms
コンパイル使用メモリ 86,688 KB
実行使用メモリ 77,772 KB
最終ジャッジ日時 2023-09-17 09:47:33
合計ジャッジ時間 6,881 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,384 KB
testcase_01 AC 301 ms
77,292 KB
testcase_02 AC 294 ms
77,348 KB
testcase_03 AC 283 ms
77,024 KB
testcase_04 AC 257 ms
77,380 KB
testcase_05 AC 249 ms
77,304 KB
testcase_06 AC 158 ms
77,364 KB
testcase_07 AC 158 ms
77,340 KB
testcase_08 AC 294 ms
77,240 KB
testcase_09 AC 295 ms
77,212 KB
testcase_10 AC 293 ms
77,288 KB
testcase_11 AC 299 ms
77,468 KB
testcase_12 AC 293 ms
77,380 KB
testcase_13 AC 302 ms
77,676 KB
testcase_14 AC 292 ms
77,756 KB
testcase_15 AC 289 ms
77,656 KB
testcase_16 AC 304 ms
77,580 KB
testcase_17 AC 297 ms
77,772 KB
testcase_18 AC 298 ms
77,680 KB
testcase_19 AC 72 ms
71,176 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#約数
def make_divisors(n):
    lower_divisors , upper_divisors = [], []
    i = 1
    while i*i <= n:
        if n % i == 0:
            lower_divisors.append(i)
            if i != n // i:
                upper_divisors.append(n//i)
        i += 1
    return lower_divisors + upper_divisors[::-1]

T = int(input())

for _ in range(T):
    N = int(input())
    if N in [1,3,4,5,7,8]:
        print(1)
    else:
        print(2)
0