結果

問題 No.264 じゃんけん
ユーザー YukimotoPGYukimotoPG
提出日時 2019-02-14 09:20:43
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 323 bytes
コンパイル時間 1,971 ms
コンパイル使用メモリ 71,580 KB
実行使用メモリ 56,284 KB
最終ジャッジ日時 2023-10-11 12:30:32
合計ジャッジ時間 3,692 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
56,172 KB
testcase_01 AC 121 ms
55,836 KB
testcase_02 AC 122 ms
56,284 KB
testcase_03 AC 121 ms
55,716 KB
testcase_04 AC 120 ms
55,672 KB
testcase_05 AC 122 ms
55,472 KB
testcase_06 WA -
testcase_07 AC 120 ms
55,760 KB
testcase_08 AC 119 ms
55,832 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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