結果
問題 | No.1058 素敵な数 |
ユーザー |
![]() |
提出日時 | 2020-08-18 11:21:42 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 311 bytes |
コンパイル時間 | 88 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 18,944 KB |
最終ジャッジ日時 | 2024-10-12 02:32:56 |
合計ジャッジ時間 | 2,907 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | WA * 9 |
ソースコード
import math def main(): n = int(input()) a = [1] for i in range(100001, 500000): flg = True for j in (2,math.sqrt(i) + 1): if i % j == 0: flg = False break if flg: a.append(i * i) a.sort() print(a[n - 1]) main()