結果

問題 No.312 置換処理
ユーザー yuppe19 😺yuppe19 😺
提出日時 2015-12-05 18:27:29
言語 Python2
(2.7.18)
結果
AC  
実行時間 67 ms / 2,000 ms
コード長 333 bytes
コンパイル時間 301 ms
コンパイル使用メモリ 6,664 KB
実行使用メモリ 6,788 KB
最終ジャッジ日時 2023-08-09 15:42:09
合計ジャッジ時間 3,606 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
6,716 KB
testcase_01 AC 50 ms
6,624 KB
testcase_02 AC 67 ms
6,568 KB
testcase_03 AC 67 ms
6,628 KB
testcase_04 AC 13 ms
6,720 KB
testcase_05 AC 66 ms
6,628 KB
testcase_06 AC 44 ms
6,608 KB
testcase_07 AC 60 ms
6,660 KB
testcase_08 AC 57 ms
6,624 KB
testcase_09 AC 34 ms
6,752 KB
testcase_10 AC 37 ms
6,788 KB
testcase_11 AC 57 ms
6,564 KB
testcase_12 AC 44 ms
6,564 KB
testcase_13 AC 62 ms
6,636 KB
testcase_14 AC 48 ms
6,748 KB
testcase_15 AC 44 ms
6,564 KB
testcase_16 AC 32 ms
6,632 KB
testcase_17 AC 52 ms
6,776 KB
testcase_18 AC 53 ms
6,608 KB
testcase_19 AC 59 ms
6,632 KB
testcase_20 AC 64 ms
6,692 KB
testcase_21 AC 66 ms
6,704 KB
testcase_22 AC 13 ms
6,556 KB
testcase_23 AC 13 ms
6,560 KB
testcase_24 AC 13 ms
6,688 KB
testcase_25 AC 13 ms
6,720 KB
testcase_26 AC 13 ms
6,784 KB
testcase_27 AC 13 ms
6,720 KB
testcase_28 AC 13 ms
6,560 KB
testcase_29 AC 13 ms
6,660 KB
testcase_30 AC 21 ms
6,632 KB
testcase_31 AC 23 ms
6,756 KB
testcase_32 AC 18 ms
6,624 KB
testcase_33 AC 30 ms
6,572 KB
testcase_34 AC 31 ms
6,788 KB
testcase_35 AC 30 ms
6,664 KB
testcase_36 AC 13 ms
6,608 KB
testcase_37 AC 13 ms
6,560 KB
testcase_38 AC 13 ms
6,624 KB
testcase_39 AC 29 ms
6,564 KB
testcase_40 AC 16 ms
6,760 KB
testcase_41 AC 13 ms
6,604 KB
testcase_42 AC 15 ms
6,560 KB
testcase_43 AC 13 ms
6,660 KB
testcase_44 AC 14 ms
6,628 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/python
from collections import defaultdict

def divisors(n):
    sq = int(n ** .5)
    res = ((i, n/i) for i in xrange(1, sq+1) if n%i==0)
    from itertools import chain
    flatten = chain.from_iterable
    return flatten(res)

n = int(raw_input())
arr = sorted(filter(lambda x:x>2, divisors(n)))
res = arr[0]
print res
0