結果

問題 No.264 じゃんけん
ユーザー yuiyui
提出日時 2017-02-20 17:35:37
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 398 bytes
コンパイル時間 2,235 ms
コンパイル使用メモリ 71,592 KB
実行使用メモリ 57,872 KB
最終ジャッジ日時 2023-08-28 21:32:24
合計ジャッジ時間 4,064 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
55,756 KB
testcase_01 WA -
testcase_02 AC 124 ms
55,476 KB
testcase_03 WA -
testcase_04 AC 125 ms
55,976 KB
testcase_05 WA -
testcase_06 AC 126 ms
55,840 KB
testcase_07 WA -
testcase_08 AC 127 ms
55,692 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
		int numA = sc.nextInt();
		int numB = sc.nextInt();
		if(numA==numB){
			System.out.println("Drew");
		}else if((numA==0)&&(numB==2)){
			System.out.println("Lost");
		}else if(numA<numB){
			System.out.println("Lost");
		}else{
			System.out.println("Won");
		}

	}
}
0