結果

問題 No.264 じゃんけん
ユーザー uafr_csuafr_cs
提出日時 2015-08-10 20:02:21
言語 Java21
(openjdk 21)
結果
AC  
実行時間 119 ms / 5,000 ms
コード長 353 bytes
コンパイル時間 1,941 ms
コンパイル使用メモリ 71,144 KB
実行使用メモリ 56,320 KB
最終ジャッジ日時 2023-09-25 07:58:01
合計ジャッジ時間 3,740 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
55,908 KB
testcase_01 AC 115 ms
55,512 KB
testcase_02 AC 119 ms
56,320 KB
testcase_03 AC 117 ms
56,048 KB
testcase_04 AC 115 ms
56,168 KB
testcase_05 AC 119 ms
55,896 KB
testcase_06 AC 118 ms
55,816 KB
testcase_07 AC 113 ms
56,004 KB
testcase_08 AC 117 ms
55,992 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		final int N = sc.nextInt();
		final int K = sc.nextInt();
		
		if(N == K){
			System.out.println("Drew");
		}else if((N + 1) % 3 == K){
			System.out.println("Won");
		}else{
			System.out.println("Lost");
		}
		
	}
	
}
0