結果
問題 | No.8 N言っちゃダメゲーム |
ユーザー |
![]() |
提出日時 | 2020-03-23 23:49:28 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 221 bytes |
コンパイル時間 | 1,916 ms |
コンパイル使用メモリ | 165,456 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-29 16:56:44 |
合計ジャッジ時間 | 2,083 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ int p;cin>>p; while(p--){ int a,b;cin>>a>>b;a--; if(a<=b)cout<<"Win"<<endl; else{ a%=(b+1); cout<<(a?"Win":"Lose")<<endl; } } }