結果
問題 | No.264 じゃんけん |
ユーザー | d07ki3bq1uz |
提出日時 | 2019-09-28 00:31:15 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 406 bytes |
コンパイル時間 | 3,673 ms |
コンパイル使用メモリ | 74,056 KB |
実行使用メモリ | 57,660 KB |
最終ジャッジ日時 | 2023-10-25 08:25:35 |
合計ジャッジ時間 | 5,625 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 134 ms
57,480 KB |
testcase_01 | AC | 131 ms
57,468 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | AC | 131 ms
57,252 KB |
testcase_05 | AC | 132 ms
57,356 KB |
testcase_06 | AC | 131 ms
57,168 KB |
testcase_07 | WA | - |
testcase_08 | AC | 133 ms
57,272 KB |
ソースコード
import java.util.Scanner; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); if(a==b){ System.out.println("Drew"); }else if(a==0&&b==1 || a==1&&b==2 || a==2&&b==0){ System.out.println("Won"); }else { System.out.println("Lose"); } } }