結果
| 問題 | No.8 N言っちゃダメゲーム |
| コンテスト | |
| ユーザー |
w10y26
|
| 提出日時 | 2017-07-05 11:59:50 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 615 bytes |
| コンパイル時間 | 712 ms |
| コンパイル使用メモリ | 91,304 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-05 19:49:00 |
| 合計ジャッジ時間 | 1,258 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
#define REP(i, n) for (int i = 0; i < (n); i++)
#define RREP(i, a, b) for (int i = a; i < (b); i++)
#define FOR(i, n) for (int i = n; i >= 0; i--)
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <vector>
#define SIZE 100001
#define MOD 1000000007
#define INF 100000000
using namespace std;
int main() {
int p;
cin >> p;
REP(i, p) {
int n, k;
cin >> n >> k;
if ((n - 1) % (k + 1) == 0)
cout << "Lose" << endl;
else
cout << "Win" << endl;
}
return 0;
}
w10y26