結果
問題 |
No.8 N言っちゃダメゲーム
|
ユーザー |
![]() |
提出日時 | 2015-05-13 09:14:33 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 293 bytes |
コンパイル時間 | 3,230 ms |
コンパイル使用メモリ | 74,204 KB |
実行使用メモリ | 42,064 KB |
最終ジャッジ日時 | 2024-07-06 01:08:02 |
合計ジャッジ時間 | 5,452 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 11 |
ソースコード
import java.util.Scanner; public class No8 { 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(); System.out.println( n % (k + 1) != 1?"win":"lose"); } } }