結果
問題 |
No.264 じゃんけん
|
ユーザー |
![]() |
提出日時 | 2017-09-07 21:49:35 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 937 bytes |
コンパイル時間 | 2,048 ms |
コンパイル使用メモリ | 74,756 KB |
実行使用メモリ | 54,176 KB |
最終ジャッジ日時 | 2024-11-07 11:15:48 |
合計ジャッジ時間 | 3,844 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 3 WA * 6 |
ソースコード
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x=sc.nextInt(); int y=sc.nextInt(); if (y == 0) { if (x == 0) System.out.println("Drew"); else if(x == 1) System.out.println("Won"); else if(x == 2) System.out.println("Lost"); } else if (y == 1){ if (x == 0) System.out.println("Lost"); else if(x == 1) System.out.println("Drew"); else if(x == 2) System.out.println("Won"); } else if (y == 2){ if (x == 0) System.out.println("Won"); else if(x == 1) System.out.println("Lost"); else if(x == 2) System.out.println("Drew"); } } }