結果
| 問題 |
No.264 じゃんけん
|
| コンテスト | |
| ユーザー |
Ryanak
|
| 提出日時 | 2017-09-07 21:51:35 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 140 ms / 5,000 ms |
| コード長 | 937 bytes |
| コンパイル時間 | 2,138 ms |
| コンパイル使用メモリ | 74,204 KB |
| 実行使用メモリ | 54,208 KB |
| 最終ジャッジ日時 | 2024-11-07 11:16:22 |
| 合計ジャッジ時間 | 4,075 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int y=sc.nextInt();
int x=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");
}
}
}
Ryanak