結果

問題 No.264 じゃんけん
ユーザー villachvillach
提出日時 2017-10-13 15:47:33
言語 Java21
(openjdk 21)
結果
AC  
実行時間 142 ms / 5,000 ms
コード長 361 bytes
コンパイル時間 3,568 ms
コンパイル使用メモリ 74,708 KB
実行使用メモリ 54,236 KB
最終ジャッジ日時 2024-04-28 17:30:03
合計ジャッジ時間 5,401 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 134 ms
54,076 KB
testcase_01 AC 139 ms
54,064 KB
testcase_02 AC 137 ms
54,076 KB
testcase_03 AC 139 ms
54,104 KB
testcase_04 AC 133 ms
54,236 KB
testcase_05 AC 140 ms
54,048 KB
testcase_06 AC 136 ms
53,968 KB
testcase_07 AC 136 ms
54,088 KB
testcase_08 AC 142 ms
53,936 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder;

import java.util.Scanner;

public class N264 {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		if(a == b){
			System.out.println("Drew");
		}else if(a - b == -1 || a - b == 2){
			System.out.println("Won");
		}else{
			System.out.println("Lost");
		}
	}
}
0