結果
問題 |
No.8 N言っちゃダメゲーム
|
ユーザー |
![]() |
提出日時 | 2018-10-17 23:44:14 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 502 bytes |
コンパイル時間 | 2,172 ms |
コンパイル使用メモリ | 74,264 KB |
実行使用メモリ | 41,804 KB |
最終ジャッジ日時 | 2024-10-12 18:57:16 |
合計ジャッジ時間 | 4,370 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 WA * 2 |
ソースコード
import java.util.Scanner; public class Main { @SuppressWarnings("resource") public static void main(String args[]) { Scanner scanner = new Scanner(System.in); int p = scanner.nextInt(); int n[]=new int[p]; int k[]=new int[p]; for(int i=0;i<p;i++){ n[i]=scanner.nextInt(); k[i]=scanner.nextInt(); } for(int i=0;i<p;i++){ int tarN=n[i]-1; int tarK=k[i]+1; if(tarN%tarK==0){ System.out.println("Lose"); break; }else{ System.out.println("Win"); } } } }