結果
| 問題 |
No.8 N言っちゃダメゲーム
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-12-15 20:36:21 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 364 bytes |
| コンパイル時間 | 508 ms |
| コンパイル使用メモリ | 59,540 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-30 08:35:11 |
| 合計ジャッジ時間 | 1,179 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
#include <iostream>
#include <vector>
#include <array>
#include <algorithm>
using namespace std;
#define REP(i,first,last) for (int i=first;i<last;i++)
#define FOR(it,con) for (auto it=con.begin();it!=con.end();it++)
int P,N,K;
int main(){
cin >> P;
REP (i,0,P) {
cin >> N;
cin >> K;
cout<< (((N-1) % (K+1) == 0) ? "Lose" : "Win") << endl;
}
}