結果
問題 |
No.8 N言っちゃダメゲーム
|
ユーザー |
![]() |
提出日時 | 2020-11-17 08:22:08 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 157 ms / 5,000 ms |
コード長 | 460 bytes |
コンパイル時間 | 2,311 ms |
コンパイル使用メモリ | 75,180 KB |
実行使用メモリ | 54,340 KB |
最終ジャッジ日時 | 2024-07-23 01:54:52 |
合計ジャッジ時間 | 4,814 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); StringBuilder sb = new StringBuilder(); for (int i = 0; i < n; i++) { if (sc.nextInt() % (sc.nextInt() + 1) == 1) { sb.append("Lose\n"); } else { sb.append("Win\n"); } } System.out.print(sb); } }