結果

問題 No.264 じゃんけん
ユーザー omc-testomc-test
提出日時 2016-08-04 09:30:03
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 5,000 ms
コード長 333 bytes
コンパイル時間 2,318 ms
コンパイル使用メモリ 74,548 KB
実行使用メモリ 41,300 KB
最終ジャッジ日時 2024-04-24 15:17:22
合計ジャッジ時間 3,554 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 110 ms
39,872 KB
testcase_01 AC 110 ms
39,936 KB
testcase_02 AC 117 ms
41,300 KB
testcase_03 AC 119 ms
41,188 KB
testcase_04 AC 121 ms
39,996 KB
testcase_05 AC 124 ms
41,064 KB
testcase_06 AC 110 ms
40,216 KB
testcase_07 AC 112 ms
40,044 KB
testcase_08 AC 109 ms
40,216 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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