結果

問題 No.264 じゃんけん
ユーザー spaciaspacia
提出日時 2015-12-16 17:38:33
言語 Java21
(openjdk 21)
結果
AC  
実行時間 43 ms / 5,000 ms
コード長 409 bytes
コンパイル時間 1,776 ms
コンパイル使用メモリ 72,116 KB
実行使用メモリ 49,520 KB
最終ジャッジ日時 2023-10-14 10:50:31
合計ジャッジ時間 2,793 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
49,216 KB
testcase_01 AC 43 ms
49,496 KB
testcase_02 AC 42 ms
49,312 KB
testcase_03 AC 42 ms
49,496 KB
testcase_04 AC 42 ms
49,332 KB
testcase_05 AC 41 ms
49,408 KB
testcase_06 AC 41 ms
49,520 KB
testcase_07 AC 42 ms
49,220 KB
testcase_08 AC 42 ms
49,216 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
class Main264 {
	public static void main (String[] args) throws IOException {
		BufferedReader br = 
			new BufferedReader(new InputStreamReader(System.in));
			String[] line = br.readLine().split(" ");
		int n = Integer.parseInt(line[0]);
		int k = Integer.parseInt(line[1]);
		if (n == k)
			System.out.println("Drew");
		else
			System.out.println((n + 1) % 3 == k ? "Won" : "Lost");
	}
}
0