結果
問題 |
No.3023 Utility is Max?
|
ユーザー |
![]() |
提出日時 | 2025-06-12 21:08:28 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 246 bytes |
コンパイル時間 | 258 ms |
コンパイル使用メモリ | 82,528 KB |
実行使用メモリ | 53,996 KB |
最終ジャッジ日時 | 2025-06-12 21:09:39 |
合計ジャッジ時間 | 3,628 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 17 |
ソースコード
n = int(input().strip()) two = len('ab') if n < two: print("NO") else: is_prime = True for i in range(two, (n // two) + 1): if n % i == 0: is_prime = False break print("YES" if is_prime else "NO")