結果

問題 No.264 じゃんけん
ユーザー YamaKasaYamaKasa
提出日時 2018-05-01 23:56:03
言語 Java21
(openjdk 21)
結果
AC  
実行時間 119 ms / 5,000 ms
コード長 399 bytes
コンパイル時間 2,334 ms
コンパイル使用メモリ 72,140 KB
実行使用メモリ 56,492 KB
最終ジャッジ日時 2023-09-10 08:48:47
合計ジャッジ時間 4,228 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
55,796 KB
testcase_01 AC 118 ms
56,152 KB
testcase_02 AC 117 ms
56,492 KB
testcase_03 AC 116 ms
53,772 KB
testcase_04 AC 118 ms
55,532 KB
testcase_05 AC 116 ms
56,148 KB
testcase_06 AC 117 ms
55,708 KB
testcase_07 AC 119 ms
56,136 KB
testcase_08 AC 118 ms
55,796 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int K = scan.nextInt();
		scan.close();

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