結果
問題 |
No.8 N言っちゃダメゲーム
|
ユーザー |
![]() |
提出日時 | 2020-12-22 22:44:17 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 426 bytes |
コンパイル時間 | 1,617 ms |
コンパイル使用メモリ | 165,548 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-21 14:23:25 |
合計ジャッジ時間 | 2,068 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll,ll> P; ll p,n,k; int main(void){ cin.tie(0); ios::sync_with_stdio(0); cin>>p; while(p--){ cin>>n>>k; if(n+1<=k){ cout<<"Win"<<endl; }else{ if(n%(k+1)==1){ cout<<"Lose"<<endl; }else{ cout<<"Win"<<endl; } } } }