結果
問題 |
No.8 N言っちゃダメゲーム
|
ユーザー |
![]() |
提出日時 | 2017-03-02 00:18:15 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 409 bytes |
コンパイル時間 | 485 ms |
コンパイル使用メモリ | 61,192 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-12 22:50:01 |
合計ジャッジ時間 | 983 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <iostream> #include <vector> #include <queue> #include <algorithm> #include <string> #define REP(i,n) for(int i=0;i<(n);++i) #define SORT(a) sort((a).begin(),(a).end()) #define PB push_back using namespace std; typedef vector<int> VI; typedef queue<int> QI; int main(){ int P; cin >> P; REP(i,P){ int N, K; cin >> N >> K; cout << (N % (K + 1) == 1 ? "Lose" : "Win") << endl; } }