結果

問題 No.312 置換処理
ユーザー yuppe19 😺
提出日時 2015-12-05 18:22:44
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 271 bytes
コンパイル時間 108 ms
コンパイル使用メモリ 6,784 KB
実行使用メモリ 6,912 KB
最終ジャッジ日時 2024-09-14 14:29:06
合計ジャッジ時間 2,813 ms
ジャッジサーバーID
(参考情報)
judge2 / judge6
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 39 WA * 6
権限があれば一括ダウンロードができます

ソースコード

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]
    return res

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