結果
問題 | No.264 じゃんけん |
ユーザー | mastersatoshi |
提出日時 | 2015-08-21 16:12:24 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 653 bytes |
コンパイル時間 | 2,406 ms |
コンパイル使用メモリ | 72,776 KB |
実行使用メモリ | 56,332 KB |
最終ジャッジ日時 | 2023-09-25 14:21:04 |
合計ジャッジ時間 | 3,856 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 120 ms
55,864 KB |
testcase_01 | WA | - |
testcase_02 | AC | 120 ms
56,076 KB |
testcase_03 | AC | 120 ms
55,688 KB |
testcase_04 | AC | 121 ms
56,124 KB |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | AC | 121 ms
56,064 KB |
testcase_08 | AC | 123 ms
56,320 KB |
ソースコード
import java.io.*; import java.util.*; public class Main { static ArrayList<Long> xs = new ArrayList(); static ArrayList<Long> xn = new ArrayList(); public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); if(n == k){ System.out.println("Drew"); }else if((n == 0 & k == 1) ||(n == 1 & k == 2) ||(n == 2 & k == 0) ){ System.out.println("Win"); }else if((n == 1 & k == 0) ||(n == 2 & k == 1) ||(n == 0 & k == 2) ){ System.out.println("Lost"); } } }