結果

問題 No.264 じゃんけん
ユーザー CavasiroCavasiro
提出日時 2020-04-15 01:11:07
言語 Java21
(openjdk 21)
結果
AC  
実行時間 139 ms / 5,000 ms
コード長 348 bytes
コンパイル時間 2,120 ms
コンパイル使用メモリ 74,216 KB
実行使用メモリ 54,280 KB
最終ジャッジ日時 2024-04-09 18:26:49
合計ジャッジ時間 4,020 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 136 ms
54,100 KB
testcase_01 AC 131 ms
53,912 KB
testcase_02 AC 134 ms
53,868 KB
testcase_03 AC 134 ms
54,148 KB
testcase_04 AC 134 ms
54,132 KB
testcase_05 AC 134 ms
53,960 KB
testcase_06 AC 139 ms
54,280 KB
testcase_07 AC 134 ms
53,996 KB
testcase_08 AC 138 ms
54,216 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
 
class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int me = sc.nextInt();
		int you = sc.nextInt();
		String ans;
		if(me == you){
			ans = "Drew";
		} else if((me==you-1)||((me==2)&&(you==0))) {
			ans = "Won";
		} else {
			ans = "Lost";
		}
		System.out.println(ans);
	}
}
0