結果
| 問題 |
No.395 永遠の17歳
|
| コンテスト | |
| ユーザー |
rocoder
|
| 提出日時 | 2017-06-10 16:06:28 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 235 bytes |
| コンパイル時間 | 268 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2024-09-24 15:41:21 |
| 合計ジャッジ時間 | 1,464 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 15 WA * 2 |
ソースコード
#395 17 forever
import math
N=int(input())
if N<15:
print(-1)
else:
i=8
nd=0
while nd==0 and i<=math.sqrt(N):
if N%i==0:
nd=i
i+=1
if nd>0:
print(nd)
else:
print(N-7)
rocoder