結果

問題 No.264 じゃんけん
ユーザー sasakkisasakki
提出日時 2016-03-28 10:18:56
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 378 bytes
コンパイル時間 1,888 ms
コンパイル使用メモリ 74,356 KB
実行使用メモリ 54,356 KB
最終ジャッジ日時 2024-04-10 04:24:52
合計ジャッジ時間 3,543 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 107 ms
52,936 KB
testcase_01 WA -
testcase_02 AC 112 ms
53,012 KB
testcase_03 AC 114 ms
53,936 KB
testcase_04 AC 122 ms
53,860 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 122 ms
53,968 KB
testcase_08 AC 101 ms
52,820 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class main{
    public static void main(String args[]){
	Scanner scan = new Scanner(System.in);

	int me = scan.nextInt();
	int opponent = scan.nextInt();

	if(me == opponent){
	    System.out.println("Drew");
	}
	else if(me + 1 == opponent || me - 2 == opponent){
	    System.out.println("Win");
	}
	else{
	    System.out.println("Lost");
	}
    }
}
0