結果
| 問題 | No.308 素数は通れません |
| コンテスト | |
| ユーザー |
maspy
|
| 提出日時 | 2020-01-02 17:15:22 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 279 bytes |
| 記録 | |
| コンパイル時間 | 165 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-11-22 18:13:14 |
| 合計ジャッジ時間 | 5,783 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 98 WA * 9 |
ソースコード
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
N = int(read())
A = [
0,0,0,0,3,0,5,0,7,7, # 0 ~ 9
7,0,11,0,13,7,7,0,8,0, # ~19
19,19,7,0,23,23,8,8,8
]
answer = A[N] if N < 30 else 8
print(answer)
maspy