結果

問題 No.264 じゃんけん
ユーザー yu_017yu_017
提出日時 2019-01-13 19:07:26
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 355 bytes
コンパイル時間 2,964 ms
コンパイル使用メモリ 71,752 KB
実行使用メモリ 56,488 KB
最終ジャッジ日時 2023-08-26 22:13:14
合計ジャッジ時間 5,137 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 117 ms
55,664 KB
testcase_02 AC 118 ms
55,668 KB
testcase_03 AC 117 ms
55,984 KB
testcase_04 WA -
testcase_05 AC 117 ms
55,712 KB
testcase_06 AC 117 ms
55,984 KB
testcase_07 AC 118 ms
55,684 KB
testcase_08 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class A000264 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int me = sc.nextInt();
		int you = sc.nextInt();
		sc.close();
		String res = "";
		if(you==me)res="Drew";
		if(you==0)you+=3;
		if(me+1==you) {
			res="Won";
		}else {
			res="Lost";
		}
		System.out.println(res);
	}

}
0