結果
問題 | No.264 じゃんけん |
ユーザー | maru |
提出日時 | 2016-03-20 21:15:37 |
言語 | Java21 (openjdk 21) |
結果 |
AC
|
実行時間 | 125 ms / 5,000 ms |
コード長 | 723 bytes |
コンパイル時間 | 3,646 ms |
コンパイル使用メモリ | 74,456 KB |
実行使用メモリ | 57,956 KB |
最終ジャッジ日時 | 2024-04-08 21:08:18 |
合計ジャッジ時間 | 5,398 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 124 ms
57,728 KB |
testcase_01 | AC | 125 ms
57,704 KB |
testcase_02 | AC | 123 ms
57,856 KB |
testcase_03 | AC | 124 ms
57,712 KB |
testcase_04 | AC | 123 ms
57,740 KB |
testcase_05 | AC | 124 ms
57,672 KB |
testcase_06 | AC | 123 ms
57,812 KB |
testcase_07 | AC | 123 ms
57,688 KB |
testcase_08 | AC | 125 ms
57,956 KB |
ソースコード
import java.util.Scanner; public class yukicoder_264 { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); String str = stdIn.nextLine(); String[] array = str.split(" "); int n = Integer.parseInt(array[0]); int k = Integer.parseInt(array[1]); if (n == k) { System.out.println("Drew"); } else { if (n == 0) { if (k == 1) { System.out.println("Won"); } else { System.out.println("Lost"); } } else if (n == 1) { if (k == 0) { System.out.println("Lost"); } else { System.out.println("Won"); } } else { if (k == 0) { System.out.println("Won"); } else { System.out.println("Lost"); } } } } }