結果

問題 No.312 置換処理
ユーザー aqua_tenhouaqua_tenhou
提出日時 2020-09-16 22:50:34
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 59 ms / 2,000 ms
コード長 389 bytes
コンパイル時間 254 ms
コンパイル使用メモリ 82,460 KB
実行使用メモリ 59,768 KB
最終ジャッジ日時 2024-04-27 11:10:56
合計ジャッジ時間 3,633 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
57,652 KB
testcase_01 AC 51 ms
57,540 KB
testcase_02 AC 56 ms
58,256 KB
testcase_03 AC 55 ms
57,808 KB
testcase_04 AC 38 ms
53,216 KB
testcase_05 AC 56 ms
57,664 KB
testcase_06 AC 49 ms
58,120 KB
testcase_07 AC 54 ms
57,988 KB
testcase_08 AC 59 ms
58,472 KB
testcase_09 AC 46 ms
59,288 KB
testcase_10 AC 46 ms
57,244 KB
testcase_11 AC 54 ms
57,852 KB
testcase_12 AC 49 ms
58,004 KB
testcase_13 AC 54 ms
58,424 KB
testcase_14 AC 50 ms
57,460 KB
testcase_15 AC 50 ms
57,380 KB
testcase_16 AC 46 ms
57,980 KB
testcase_17 AC 53 ms
57,820 KB
testcase_18 AC 50 ms
58,764 KB
testcase_19 AC 52 ms
58,140 KB
testcase_20 AC 55 ms
58,068 KB
testcase_21 AC 55 ms
57,804 KB
testcase_22 AC 38 ms
53,148 KB
testcase_23 AC 43 ms
52,536 KB
testcase_24 AC 37 ms
51,884 KB
testcase_25 AC 42 ms
53,624 KB
testcase_26 AC 38 ms
53,360 KB
testcase_27 AC 38 ms
53,224 KB
testcase_28 AC 38 ms
53,220 KB
testcase_29 AC 38 ms
52,396 KB
testcase_30 AC 42 ms
57,468 KB
testcase_31 AC 43 ms
57,988 KB
testcase_32 AC 43 ms
59,768 KB
testcase_33 AC 46 ms
57,392 KB
testcase_34 AC 46 ms
58,108 KB
testcase_35 AC 49 ms
58,476 KB
testcase_36 AC 39 ms
53,180 KB
testcase_37 AC 39 ms
52,528 KB
testcase_38 AC 40 ms
52,952 KB
testcase_39 AC 46 ms
57,868 KB
testcase_40 AC 42 ms
57,592 KB
testcase_41 AC 41 ms
52,456 KB
testcase_42 AC 41 ms
58,236 KB
testcase_43 AC 37 ms
52,812 KB
testcase_44 AC 38 ms
52,792 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def div(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]

n = int(input())
L = div(n)
for x in L:
    if not(0 <= x <= 2):
        ans = x
        break
print(ans)
0