結果
問題 |
No.264 じゃんけん
|
ユーザー |
![]() |
提出日時 | 2019-09-28 00:31:15 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 406 bytes |
コンパイル時間 | 2,409 ms |
コンパイル使用メモリ | 73,996 KB |
実行使用メモリ | 41,520 KB |
最終ジャッジ日時 | 2024-09-25 03:34:24 |
合計ジャッジ時間 | 4,317 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 WA * 3 |
ソースコード
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"); } } }