結果
問題 | No.264 じゃんけん |
ユーザー |
![]() |
提出日時 | 2019-09-28 00:32:08 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 135 ms / 5,000 ms |
コード長 | 406 bytes |
コンパイル時間 | 2,468 ms |
コンパイル使用メモリ | 74,940 KB |
実行使用メモリ | 54,352 KB |
最終ジャッジ日時 | 2024-09-25 03:34:57 |
合計ジャッジ時間 | 3,764 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 |
ソースコード
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("Lost"); } } }