結果

問題 No.8 N言っちゃダメゲーム
ユーザー newlife171128
提出日時 2018-01-29 21:13:05
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 3 ms / 5,000 ms
コード長 611 bytes
コンパイル時間 2,060 ms
コンパイル使用メモリ 159,080 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-29 18:14:33
合計ジャッジ時間 2,456 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#include "bits/stdc++.h"
#include <iostream>
#include <iomanip>
#include <vector>
#include <algorithm>
#include <string>
#include <sstream>
#include <cmath>
#include <stack>
#include <queue>
#include <cctype>
#include <stdio.h>
#include <map>

#include <string.h>
#include <utility>

typedef long long ll;
#define INF (1e9+1)
#define rep(i,n) for(ll i=0;i<(ll)(n);i++)
using namespace std;

typedef pair<int, int> P;




int main(){

	int p=0;
	cin>>p;

	int n,k;
	for(int i=0; i<p; i++){
		cin>>n>>k;

		if(n%(k+1) ==1){
			cout<<"Lose"<<endl;
		}else {
			cout<<"Win"<<endl;
		}
	}

}
0