結果
問題 | No.8 N言っちゃダメゲーム |
ユーザー |
![]() |
提出日時 | 2021-12-30 16:18:28 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 249 bytes |
コンパイル時間 | 1,761 ms |
コンパイル使用メモリ | 193,044 KB |
最終ジャッジ日時 | 2025-01-27 07:38:34 |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define rep(i,n) for(int i=0;i<n;i++) signed main(){ int p;cin>>p; while(p--){ int n,k; cin>>n>>k; if((n-1)%(k+1)==0) cout<<"Lose"<<endl; else cout<<"Win"<<endl; } return 0; }