結果
問題 | No.264 じゃんけん |
ユーザー | yui |
提出日時 | 2017-02-20 17:33:03 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 398 bytes |
コンパイル時間 | 2,887 ms |
コンパイル使用メモリ | 71,120 KB |
実行使用メモリ | 56,076 KB |
最終ジャッジ日時 | 2023-08-28 21:32:00 |
合計ジャッジ時間 | 4,814 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 124 ms
56,076 KB |
testcase_01 | WA | - |
testcase_02 | AC | 126 ms
55,880 KB |
testcase_03 | WA | - |
testcase_04 | AC | 124 ms
56,032 KB |
testcase_05 | WA | - |
testcase_06 | AC | 124 ms
55,796 KB |
testcase_07 | WA | - |
testcase_08 | AC | 127 ms
55,664 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("Lost"); }else if(numA<numB){ System.out.println("Lose"); }else{ System.out.println("Won"); } } }