結果

問題 No.264 じゃんけん
ユーザー omuomu
提出日時 2015-08-08 04:16:08
言語 Java21
(openjdk 21)
結果
AC  
実行時間 123 ms / 5,000 ms
コード長 415 bytes
コンパイル時間 3,654 ms
コンパイル使用メモリ 71,380 KB
実行使用メモリ 56,316 KB
最終ジャッジ日時 2023-09-25 06:59:01
合計ジャッジ時間 4,255 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,776 KB
testcase_01 AC 120 ms
55,820 KB
testcase_02 AC 119 ms
55,888 KB
testcase_03 AC 119 ms
55,444 KB
testcase_04 AC 120 ms
56,316 KB
testcase_05 AC 123 ms
55,712 KB
testcase_06 AC 122 ms
55,960 KB
testcase_07 AC 121 ms
55,888 KB
testcase_08 AC 120 ms
55,748 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package tmp;

import java.util.Scanner;

public class Main {

	static Scanner sc;
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		solve();
	}
	
	static void solve(){
		int n = sc.nextInt();
		int k = sc.nextInt();
		
		if((n + 1) % 3 == k){
			System.out.println("Won");
		}else
		if((k + 1) % 3 == n){
			System.out.println("Lost");
		}else{
			
			System.out.println("Drew");
		}
	}

}
0