結果

問題 No.8 N言っちゃダメゲーム
ユーザー 井筒麗稀
提出日時 2025-07-10 21:03:48
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 412 bytes
コンパイル時間 404 ms
コンパイル使用メモリ 12,160 KB
実行使用メモリ 10,368 KB
最終ジャッジ日時 2025-07-10 21:03:50
合計ジャッジ時間 1,797 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 7 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    P = int(input())
    pair = []

    for i in range(P):
        a, b = map(int, input().split())
        pair.append((a,b))
    
    for i in range(P):
        N = pair[i][0]
        K = pair[i][1]
        count = P - 1
        while count >= K:
            count -= K + 1
        if count == 0:
            print("Lose")
        else:
            print("Win")

if __name__=='__main__':
    main()
0