結果

問題 No.264 じゃんけん
ユーザー villachvillach
提出日時 2017-10-13 15:45:35
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 356 bytes
コンパイル時間 3,312 ms
コンパイル使用メモリ 74,620 KB
実行使用メモリ 54,300 KB
最終ジャッジ日時 2024-04-28 17:29:58
合計ジャッジ時間 5,105 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 133 ms
41,204 KB
testcase_02 AC 130 ms
41,104 KB
testcase_03 AC 130 ms
41,340 KB
testcase_04 WA -
testcase_05 AC 128 ms
41,456 KB
testcase_06 AC 127 ms
41,344 KB
testcase_07 AC 127 ms
41,252 KB
testcase_08 WA -
権限があれば一括ダウンロードができます

ソースコード

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");
		}if(a - b == -1 || a - b == 2){
			System.out.println("Won");
		}else{
			System.out.println("Lost");
		}
	}
}
0