結果

問題 No.264 じゃんけん
ユーザー sasakkisasakki
提出日時 2016-03-28 10:19:25
言語 Java21
(openjdk 21)
結果
AC  
実行時間 143 ms / 5,000 ms
コード長 378 bytes
コンパイル時間 2,789 ms
コンパイル使用メモリ 74,724 KB
実行使用メモリ 54,240 KB
最終ジャッジ日時 2024-04-10 04:26:50
合計ジャッジ時間 4,211 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 138 ms
53,896 KB
testcase_01 AC 138 ms
54,100 KB
testcase_02 AC 137 ms
53,864 KB
testcase_03 AC 137 ms
54,152 KB
testcase_04 AC 143 ms
53,960 KB
testcase_05 AC 134 ms
53,932 KB
testcase_06 AC 139 ms
54,240 KB
testcase_07 AC 136 ms
54,168 KB
testcase_08 AC 134 ms
53,880 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("Won");
	}
	else{
	    System.out.println("Lost");
	}
    }
}
0