結果

問題 No.264 じゃんけん
ユーザー fal_rndfal_rnd
提出日時 2017-03-31 16:04:33
言語 Java21
(openjdk 21)
結果
AC  
実行時間 128 ms / 5,000 ms
コード長 393 bytes
コンパイル時間 1,969 ms
コンパイル使用メモリ 71,984 KB
実行使用メモリ 55,780 KB
最終ジャッジ日時 2023-09-21 10:39:44
合計ジャッジ時間 3,907 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
55,716 KB
testcase_01 AC 127 ms
55,780 KB
testcase_02 AC 127 ms
55,668 KB
testcase_03 AC 126 ms
55,696 KB
testcase_04 AC 125 ms
55,616 KB
testcase_05 AC 128 ms
55,660 KB
testcase_06 AC 127 ms
55,392 KB
testcase_07 AC 126 ms
55,668 KB
testcase_08 AC 124 ms
55,612 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main{

	static Scanner s=new Scanner(System.in);

	public static void main(String __[]){
		input();
		solve();
	}

	private static void input(){
	}

	private static void solve(){
		int a=s.nextInt(),b=s.nextInt();
		if(a==b)
			System.out.println("Drew");
		else if((a-b+3)%3==2)
			System.out.println("Won");
		else
			System.out.println("Lost");
	}
}
0