結果

問題 No.264 じゃんけん
ユーザー YOSHIYOSHI
提出日時 2021-03-07 22:38:05
言語 Java21
(openjdk 21)
結果
AC  
実行時間 68 ms / 5,000 ms
コード長 597 bytes
コンパイル時間 3,829 ms
コンパイル使用メモリ 79,212 KB
実行使用メモリ 37,948 KB
最終ジャッジ日時 2024-04-17 12:51:11
合計ジャッジ時間 4,936 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
37,208 KB
testcase_01 AC 64 ms
37,788 KB
testcase_02 AC 64 ms
37,916 KB
testcase_03 AC 64 ms
37,660 KB
testcase_04 AC 67 ms
37,560 KB
testcase_05 AC 68 ms
37,596 KB
testcase_06 AC 65 ms
37,948 KB
testcase_07 AC 65 ms
37,788 KB
testcase_08 AC 65 ms
37,284 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.stream.Stream;

public class No00000264_Main {

	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int[] arr = Stream.of(br.readLine().split(" ")).mapToInt(Integer::parseInt).toArray();
		if(arr[0] == arr[1]) {
			System.out.println("Drew");
		} else {
			if((arr[0] - arr[1] == 2) || arr[0] - arr[1] == -1) {
				System.out.println("Won");
			} else {
				System.out.println("Lost");
			}
		}
	}
}
0