結果
| 問題 |
No.8 N言っちゃダメゲーム
|
| コンテスト | |
| ユーザー |
tkzw_21
|
| 提出日時 | 2015-01-29 10:37:45 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 693 bytes |
| コンパイル時間 | 1,344 ms |
| コンパイル使用メモリ | 158,056 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-23 03:45:07 |
| 合計ジャッジ時間 | 1,827 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
#include <bits/stdc++.h>
#define MOD 1000000007
using namespace std;
typedef pair<int,int> P;
typedef pair<int,pair<int,int>> PP;
typedef long long LL;
const double EPS = 1e-8;
const int INF = 1e9;
int dy[] = {0,1,0,-1};
int dx[] = {1,0,-1,0};
int main(void) {
int P;
cin >> P;
for(int i=0;i<P;i++){
int N,K;
cin >> N >> K;
if(N <= K)cout << "Win" << endl;
else if(N%(K+1) == 1)cout << "Lose" << endl;
else cout << "Win" << endl;
}
return 0;
}
// command shift d duplicate
// command ctrl up down
// command D
// command caps G → '' ""
// vector<vector<int>> a(N,vector<int>(M,-1));
//diff < (./a.out < input.txt) output.txt
// sort(v.begin(),v.end(),greater<int>());
tkzw_21