結果

問題 No.1363 [Zelkova Last Tune] 誰がその最後のベルを鳴らすのか?
ユーザー 👑 Kazun
提出日時 2020-09-18 00:41:47
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 217 bytes
コンパイル時間 197 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 65,024 KB
最終ジャッジ日時 2024-09-21 17:27:39
合計ジャッジ時間 1,119 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other RE * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

K=int(input())
A=[0]*K
P=[0]*K

H=[0]*K

Grundy=0
for i in range(K):
    a,p=map(int,input().split())
    A[i]=a
    P[i]=p

    h=a%(p+1)

    H[i]=h
    Grundy^=h

if Grundy:
    print("Win")
else:
    print("Lose")
0