結果
問題 |
No.809 かけ算
|
ユーザー |
![]() |
提出日時 | 2019-04-27 00:02:38 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 38 ms / 2,000 ms |
コード長 | 410 bytes |
コンパイル時間 | 156 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 12,032 KB |
最終ジャッジ日時 | 2024-11-25 08:33:59 |
合計ジャッジ時間 | 970 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 6 |
ソースコード
from math import sqrt def divisors(N:int): max = int(sqrt(N)) + 1 a = [x for x in range(max)] a[1] = 0 for p in a: if not p: continue else: for multi in range(p + p,max,p): a[multi] = 0 return [x for x in a if x] C = int(input()) for A in divisors(C): if not C % A: break else: A = 1 B = C // A print("%d %d" % (A,B))