結果
問題 |
No.8 N言っちゃダメゲーム
|
ユーザー |
![]() |
提出日時 | 2014-11-12 22:04:18 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 560 bytes |
コンパイル時間 | 739 ms |
コンパイル使用メモリ | 72,284 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-31 10:03:21 |
合計ジャッジ時間 | 1,296 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 WA * 7 |
ソースコード
#include <iostream> #include <string> #include <vector> #include <cmath> #include <algorithm> #include <cstdlib> #include <ctime> #include <cstdio> #include <functional> #include <set> #include <sstream> #include <cctype> using namespace std; #define MP make_pair typedef unsigned long long ULL; const long INF=1000000000; int main(){ int p; cin>>p; for(int i=0;i<p;i++){ long n,k; cin>>n>>k; if(n-1<=k || n%(k+1)==0 || n%(k+1)==k-1) cout<<"Win"<<endl; else cout<<"Lose"<<endl; } return 0; }