結果

問題 No.264 じゃんけん
ユーザー fal_rnd
提出日時 2017-03-31 16:04:33
言語 Java
(openjdk 23)
結果
AC  
実行時間 124 ms / 5,000 ms
コード長 393 bytes
コンパイル時間 2,102 ms
コンパイル使用メモリ 74,752 KB
実行使用メモリ 54,184 KB
最終ジャッジ日時 2024-07-07 04:43:04
合計ジャッジ時間 3,303 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

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