結果

問題 No.8 N言っちゃダメゲーム
ユーザー tcltktcltk
提出日時 2021-01-17 04:36:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 262 ms / 5,000 ms
コード長 642 bytes
コンパイル時間 710 ms
コンパイル使用メモリ 86,848 KB
実行使用メモリ 92,208 KB
最終ジャッジ日時 2023-08-19 10:33:56
合計ジャッジ時間 4,460 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 254 ms
91,868 KB
testcase_01 AC 254 ms
92,060 KB
testcase_02 AC 254 ms
92,208 KB
testcase_03 AC 257 ms
91,836 KB
testcase_04 AC 262 ms
91,636 KB
testcase_05 AC 260 ms
92,060 KB
testcase_06 AC 257 ms
91,964 KB
testcase_07 AC 257 ms
92,056 KB
testcase_08 AC 254 ms
91,996 KB
testcase_09 AC 258 ms
91,840 KB
testcase_10 AC 255 ms
92,092 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#region Header
#!/usr/bin/env python3
# from typing import *

import sys
import io
import math
import collections
import decimal
import itertools
from queue import PriorityQueue
import bisect
import heapq

def input():
    return sys.stdin.readline()[:-1]

sys.setrecursionlimit(1000000)
#endregion

# _INPUT = """# paste here...
# """
# sys.stdin = io.StringIO(_INPUT)



def main():
    P = int(input())
    for _ in range(P):
        N, K = map(int, input().split())
        if (N-1) % (K+1) == 0:
            print('Lose')
        else:
            print('Win')

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