結果
| 問題 | No.312 置換処理 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-12-05 18:22:44 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 271 bytes |
| 記録 | |
| コンパイル時間 | 158 ms |
| コンパイル使用メモリ | 77,740 KB |
| 最終ジャッジ日時 | 2025-12-03 18:20:26 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge6 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 39 WA * 6 |
ソースコード
#!/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