結果

問題 No.264 じゃんけん
ユーザー koukonkokoukonko
提出日時 2015-12-22 14:16:39
言語 Java19
(openjdk 21)
結果
AC  
実行時間 54 ms / 5,000 ms
コード長 607 bytes
コンパイル時間 2,263 ms
コンパイル使用メモリ 75,640 KB
実行使用メモリ 53,544 KB
最終ジャッジ日時 2023-10-18 22:36:26
合計ジャッジ時間 3,180 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
53,544 KB
testcase_01 AC 53 ms
52,572 KB
testcase_02 AC 53 ms
53,536 KB
testcase_03 AC 53 ms
52,584 KB
testcase_04 AC 53 ms
53,532 KB
testcase_05 AC 53 ms
53,528 KB
testcase_06 AC 53 ms
52,588 KB
testcase_07 AC 53 ms
53,532 KB
testcase_08 AC 54 ms
53,528 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder;

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) {
		BufferedReader buff = new BufferedReader(new InputStreamReader(System.in));

		try {
			String[] line = buff.readLine().split(" ");
			int me = Integer.parseInt(line[0]);
			int you = Integer.parseInt(line[1]);

			if (me == you) {
				System.out.println("Drew");
			} else if (me + 1 == you || (me == 2 && you == 0)) {
				System.out.println("Won");
			} else {
				System.out.println("Lost");
			}

		} catch (Exception e) {
			e.getStackTrace();
		}
	}
}
0