結果

問題 No.264 じゃんけん
ユーザー omc-testomc-test
提出日時 2016-08-04 09:28:19
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 334 bytes
コンパイル時間 2,242 ms
コンパイル使用メモリ 74,236 KB
実行使用メモリ 41,340 KB
最終ジャッジ日時 2024-04-24 15:17:17
合計ジャッジ時間 3,735 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 114 ms
41,340 KB
testcase_02 AC 114 ms
40,128 KB
testcase_03 AC 113 ms
41,316 KB
testcase_04 WA -
testcase_05 AC 114 ms
41,112 KB
testcase_06 AC 109 ms
40,924 KB
testcase_07 AC 102 ms
40,080 KB
testcase_08 WA -
権限があれば一括ダウンロードができます

ソースコード

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