結果

問題 No.264 じゃんけん
ユーザー Tsukasa_TypeTsukasa_Type
提出日時 2018-02-08 21:58:34
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 384 bytes
コンパイル時間 2,379 ms
コンパイル使用メモリ 74,216 KB
実行使用メモリ 58,088 KB
最終ジャッジ日時 2024-04-08 11:21:22
合計ジャッジ時間 4,670 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 135 ms
58,088 KB
testcase_01 AC 134 ms
57,704 KB
testcase_02 WA -
testcase_03 AC 134 ms
57,828 KB
testcase_04 AC 136 ms
58,076 KB
testcase_05 AC 139 ms
57,952 KB
testcase_06 AC 137 ms
57,952 KB
testcase_07 AC 137 ms
57,972 KB
testcase_08 AC 139 ms
57,976 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 < enem) {System.out.println("Won");}
		else {System.out.println("Lost");}
	}
}
0