結果
問題 |
No.8 N言っちゃダメゲーム
|
ユーザー |
![]() |
提出日時 | 2018-09-12 12:06:33 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 472 bytes |
コンパイル時間 | 1,549 ms |
コンパイル使用メモリ | 167,848 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-26 10:47:13 |
合計ジャッジ時間 | 2,162 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <bits/stdc++.h> typedef long long ll; #define INF 1000000000 #define MOD 1000000007 using namespace std; bool check(int n,int k){ int a=n-1,b=k+1,c=a/b; int num=a-c*b; if(num==0)return false; else return true; } int main(void){ int ans=0; int d; cin>>d; for(int i=0;i<d;i++){ int n,k; cin>>n>>k; if(check(n,k)){ cout<<"Win"<<endl; }else{ cout<<"Lose"<<endl; } } }