結果

問題 No.264 じゃんけん
ユーザー Tsukasa_TypeTsukasa_Type
提出日時 2018-02-08 21:59:44
言語 Java21
(openjdk 21)
結果
AC  
実行時間 138 ms / 5,000 ms
コード長 445 bytes
コンパイル時間 2,440 ms
コンパイル使用メモリ 74,444 KB
実行使用メモリ 58,068 KB
最終ジャッジ日時 2024-04-08 13:15:37
合計ジャッジ時間 4,543 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 138 ms
57,972 KB
testcase_01 AC 136 ms
57,996 KB
testcase_02 AC 136 ms
58,012 KB
testcase_03 AC 135 ms
57,992 KB
testcase_04 AC 135 ms
57,976 KB
testcase_05 AC 135 ms
57,980 KB
testcase_06 AC 135 ms
57,960 KB
testcase_07 AC 133 ms
57,840 KB
testcase_08 AC 136 ms
58,068 KB
権限があれば一括ダウンロードができます

ソースコード

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==0 && enem==2) {System.out.println("Lost");}
		else if (hero < enem) {System.out.println("Won");}
		else {System.out.println("Lost");}
	}
}
0