結果

問題 No.8 N言っちゃダメゲーム
ユーザー takeya_okinotakeya_okino
提出日時 2017-06-15 08:59:51
言語 Java21
(openjdk 21)
結果
AC  
実行時間 164 ms / 5,000 ms
コード長 374 bytes
コンパイル時間 3,671 ms
コンパイル使用メモリ 76,148 KB
実行使用メモリ 58,104 KB
最終ジャッジ日時 2023-10-25 06:28:36
合計ジャッジ時間 4,743 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
57,828 KB
testcase_01 AC 127 ms
57,836 KB
testcase_02 AC 130 ms
57,576 KB
testcase_03 AC 152 ms
57,764 KB
testcase_04 AC 153 ms
57,756 KB
testcase_05 AC 154 ms
57,848 KB
testcase_06 AC 164 ms
57,796 KB
testcase_07 AC 155 ms
58,104 KB
testcase_08 AC 155 ms
57,812 KB
testcase_09 AC 162 ms
57,784 KB
testcase_10 AC 151 ms
57,332 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int P = sc.nextInt();
    for(int i = 0; i < P; i++) {
      int N = sc.nextInt();
      int K = sc.nextInt();
      if(N % (K + 1) == 1) {
        System.out.println("Lose");
      } else {
        System.out.println("Win");
      }
    }
  }
}
0