結果
問題 |
No.3023 Utility is Max?
|
ユーザー |
![]() |
提出日時 | 2025-06-12 15:58:40 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 317 bytes |
コンパイル時間 | 170 ms |
コンパイル使用メモリ | 82,516 KB |
実行使用メモリ | 54,020 KB |
最終ジャッジ日時 | 2025-06-12 15:58:55 |
合計ジャッジ時間 | 2,630 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 17 |
ソースコード
n = int(input().strip()) if n < len(['a', 'a']): print("NO") else: is_prime = True i_list = ['a', 'a'] # Represents 2 while len(i_list) < n: i = len(i_list) if n % i == 0: is_prime = False break i_list.append('a') print("YES" if is_prime else "NO")