結果

問題 No.312 置換処理
ユーザー convexineqconvexineq
提出日時 2020-12-08 10:28:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 46 ms / 2,000 ms
コード長 202 bytes
コンパイル時間 185 ms
コンパイル使用メモリ 82,248 KB
実行使用メモリ 59,304 KB
最終ジャッジ日時 2024-04-27 11:11:42
合計ジャッジ時間 2,706 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
52,828 KB
testcase_01 AC 42 ms
57,912 KB
testcase_02 AC 45 ms
57,644 KB
testcase_03 AC 46 ms
58,612 KB
testcase_04 AC 31 ms
52,592 KB
testcase_05 AC 33 ms
52,068 KB
testcase_06 AC 36 ms
57,888 KB
testcase_07 AC 39 ms
58,664 KB
testcase_08 AC 32 ms
52,336 KB
testcase_09 AC 32 ms
53,096 KB
testcase_10 AC 36 ms
57,436 KB
testcase_11 AC 43 ms
58,580 KB
testcase_12 AC 32 ms
52,380 KB
testcase_13 AC 33 ms
53,196 KB
testcase_14 AC 34 ms
52,148 KB
testcase_15 AC 33 ms
52,976 KB
testcase_16 AC 34 ms
53,452 KB
testcase_17 AC 34 ms
51,876 KB
testcase_18 AC 35 ms
53,264 KB
testcase_19 AC 36 ms
52,352 KB
testcase_20 AC 34 ms
52,264 KB
testcase_21 AC 35 ms
53,020 KB
testcase_22 AC 33 ms
52,708 KB
testcase_23 AC 31 ms
51,940 KB
testcase_24 AC 31 ms
52,512 KB
testcase_25 AC 31 ms
52,384 KB
testcase_26 AC 30 ms
52,128 KB
testcase_27 AC 33 ms
52,028 KB
testcase_28 AC 34 ms
51,752 KB
testcase_29 AC 33 ms
52,484 KB
testcase_30 AC 36 ms
58,824 KB
testcase_31 AC 33 ms
52,280 KB
testcase_32 AC 36 ms
57,780 KB
testcase_33 AC 39 ms
59,304 KB
testcase_34 AC 41 ms
58,328 KB
testcase_35 AC 35 ms
57,720 KB
testcase_36 AC 32 ms
52,764 KB
testcase_37 AC 32 ms
52,068 KB
testcase_38 AC 32 ms
52,320 KB
testcase_39 AC 31 ms
52,500 KB
testcase_40 AC 31 ms
51,884 KB
testcase_41 AC 32 ms
52,568 KB
testcase_42 AC 33 ms
53,080 KB
testcase_43 AC 32 ms
52,552 KB
testcase_44 AC 32 ms
53,424 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
for i in range(3,n+1):
    if i*i > n:
        if n%2==0 and n!=4:
            print(n//2)
        else:
            print(n)
        break
    if n%i==0:
        print(i)
        break
0