結果

問題 No.264 じゃんけん
ユーザー veroom
提出日時 2016-10-10 12:17:47
言語 Java
(openjdk 23)
結果
AC  
実行時間 126 ms / 5,000 ms
コード長 524 bytes
コンパイル時間 6,501 ms
コンパイル使用メモリ 83,496 KB
実行使用メモリ 41,836 KB
最終ジャッジ日時 2024-11-22 00:49:55
合計ジャッジ時間 7,933 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder;

import java.util.Scanner;

public class Yukicoder {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int you = sc.nextInt();
		int opponent = sc.nextInt();

		if (you == 0 && opponent == 2) {
			System.out.println("Lost");
		}else if (you == 2 && opponent == 0) {
			System.out.println("Won");
		} else if (you < opponent) {
			System.out.println("Won");
		} else if (you == opponent) {
			System.out.println("Drew");
		} else {
			System.out.println("Lost");
		}
	}
}
0