結果

問題 No.7 プライムナンバーゲーム
ユーザー jamad
提出日時 2017-08-18 04:16:04
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 226 bytes
コンパイル時間 133 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-10-14 14:15:11
合計ジャッジ時間 3,156 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 7 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

P=[2,3]
for i in range(5,10001):
    for p in P:
        if i%p==0:break
    else:P.append(i)
#print(P)

N=int(input())

for p in P:
    if p>N:continue
    if N-p==2:
        print('Win')
        break
else:
    print('Lose')
0