結果

問題 No.8 N言っちゃダメゲーム
ユーザー holegumaholeguma
提出日時 2015-07-26 04:14:22
言語 Java21
(openjdk 21)
結果
AC  
実行時間 50 ms / 5,000 ms
コード長 433 bytes
コンパイル時間 1,813 ms
コンパイル使用メモリ 71,648 KB
実行使用メモリ 49,664 KB
最終ジャッジ日時 2023-09-22 23:22:59
合計ジャッジ時間 3,049 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
49,196 KB
testcase_01 AC 41 ms
49,396 KB
testcase_02 AC 39 ms
49,240 KB
testcase_03 AC 47 ms
49,164 KB
testcase_04 AC 47 ms
49,428 KB
testcase_05 AC 49 ms
49,664 KB
testcase_06 AC 48 ms
49,304 KB
testcase_07 AC 50 ms
49,164 KB
testcase_08 AC 49 ms
49,176 KB
testcase_09 AC 49 ms
49,456 KB
testcase_10 AC 49 ms
49,212 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;

class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String line="";
while((line=br.readLine())!=null){
int p=Integer.parseInt(line);
for(int i=0;i<p;i++){
String[] values=br.readLine().split(" ");
int k=Integer.parseInt(values[0]);
int n=Integer.parseInt(values[1]);
System.out.println((k-1)%(n+1)==0?"Lose":"Win");
}
}
}
}
0