結果

問題 No.8 N言っちゃダメゲーム
ユーザー monnu
提出日時 2020-05-30 20:11:43
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 5,000 ms
コード長 402 bytes
コンパイル時間 1,747 ms
コンパイル使用メモリ 168,008 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-08 01:38:20
合計ジャッジ時間 2,256 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll=long long;
using Graph=vector<vector<int>>;
#define MOD 998244353
#define INF 1000000000

int main(){
  int P;
  cin>>P;
  vector<int> N(P),K(P);
  for(int i=0;i<P;i++){
    cin>>N.at(i)>>K.at(i);
  }

  for(int i=0;i<P;i++){
    N.at(i)--;
    if(N.at(i)%(K.at(i)+1)==0){
      cout<<"Lose"<<endl;
    }else{
      cout<<"Win"<<endl;
    }
  }
}
0