結果
問題 | No.264 じゃんけん |
ユーザー | yui |
提出日時 | 2017-02-20 17:36:17 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 397 bytes |
コンパイル時間 | 2,178 ms |
コンパイル使用メモリ | 71,652 KB |
実行使用メモリ | 56,060 KB |
最終ジャッジ日時 | 2023-08-28 21:33:43 |
合計ジャッジ時間 | 3,939 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 124 ms
55,956 KB |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | AC | 126 ms
56,060 KB |
testcase_05 | WA | - |
testcase_06 | AC | 126 ms
55,912 KB |
testcase_07 | WA | - |
testcase_08 | AC | 123 ms
55,732 KB |
ソースコード
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int numA = sc.nextInt(); int numB = sc.nextInt(); if(numA==numB){ System.out.println("Drew"); }else if((numA==0)&&(numB==2)){ System.out.println("Win"); }else if(numA<numB){ System.out.println("Lost"); }else{ System.out.println("Won"); } } }