結果

問題 No.264 じゃんけん
ユーザー t8m8⛄️t8m8⛄️
提出日時 2015-08-07 22:23:35
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 741 bytes
コンパイル時間 3,489 ms
コンパイル使用メモリ 73,124 KB
実行使用メモリ 56,464 KB
最終ジャッジ日時 2023-09-25 06:01:22
合計ジャッジ時間 5,318 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
55,888 KB
testcase_01 AC 123 ms
55,884 KB
testcase_02 WA -
testcase_03 AC 124 ms
55,944 KB
testcase_04 AC 123 ms
55,988 KB
testcase_05 AC 122 ms
55,924 KB
testcase_06 AC 125 ms
56,076 KB
testcase_07 AC 121 ms
56,464 KB
testcase_08 AC 123 ms
55,888 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;
import java.awt.geom.*;
import java.math.*;

public class No0264 {
	
	static final Scanner in = new Scanner(System.in);
	static final PrintWriter out = new PrintWriter(System.out,false);

	static void solve() {
		int n = in.nextInt();
		int k = in.nextInt();
		if (n < k || (n == 2 && k == 0)) {
			out.println("Won");
		}else if (n == k) {
			out.println("Drew");
		}else {
			out.println("Lost");
		}
	}

	public static void main(String[] args) {
		long start = System.currentTimeMillis();

		solve();
		out.flush();

		long end = System.currentTimeMillis();
		//trace(end-start + "ms");
		in.close();
		out.close();
	}

	static void trace(Object... o) { System.out.println(Arrays.deepToString(o));}
}
0