結果
| 問題 |
No.36 素数が嫌い!
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-10-08 21:19:50 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 1,613 ms / 5,000 ms |
| コード長 | 228 bytes |
| コンパイル時間 | 224 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-07-23 03:25:14 |
| 合計ジャッジ時間 | 16,695 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 26 |
ソースコード
N = int(input())
def f(x):
r = set()
for i in range(2,int(x**0.5)+1):
if x%i==0:
r.add(x//i)
r.add(i)
return r
l = f(N)
for i in l:
if len(f(i))>0:exit(print('YES'))
print('NO')