結果

問題 No.264 じゃんけん
ユーザー Tsukasa_Type
提出日時 2018-02-08 21:58:34
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 384 bytes
コンパイル時間 1,750 ms
コンパイル使用メモリ 74,716 KB
実行使用メモリ 55,724 KB
最終ジャッジ日時 2024-10-01 05:20:37
合計ジャッジ時間 3,503 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 8 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		int hero = sc.nextInt();
		int enem = sc.nextInt();
		if (hero==enem) {System.out.println("Drew");}
		else if (hero==2 && enem==0) {System.out.println("Won");}
		else if (hero < enem) {System.out.println("Won");}
		else {System.out.println("Lost");}
	}
}
0