結果

問題 No.8 N言っちゃダメゲーム
ユーザー furu_tuww
提出日時 2016-07-10 01:53:59
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 345 bytes
コンパイル時間 1,267 ms
コンパイル使用メモリ 63,600 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-13 09:50:48
合計ジャッジ時間 1,015 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <cstdio>
#include <cmath>
#include <cstring>
#include <iostream>
#include <algorithm>
#include <string>
using namespace std;
int p;
int main(void){
  cin >> p;
  for(int i = 0; i < p; i++){
    int n,k;
    cin >> n >> k;
    int f = (n-1)%(k+1);
    if(f == 0)
      cout << "Lose" << endl;
    else
      cout << "Win" << endl;
  }
}
0