結果
問題 |
No.36 素数が嫌い!
|
ユーザー |
|
提出日時 | 2021-07-16 18:20:05 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 347 bytes |
コンパイル時間 | 201 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 17,700 KB |
最終ジャッジ日時 | 2024-07-06 05:12:06 |
合計ジャッジ時間 | 12,807 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 4 |
other | TLE * 1 -- * 25 |
ソースコード
def sosuiya(N): result = [] i = 2 while N != 1: if N % i == 0: result.append(i) N = N // i elif N % i > 0: i += 1 if len(result) > 2: return 'YES' else: return 'NO' def main(): N = int(input()) print(sosuiya(N)) if __name__ == '__main__': main()