結果

問題 No.264 じゃんけん
ユーザー spring
提出日時 2019-06-12 13:09:44
言語 Java
(openjdk 23)
結果
AC  
実行時間 132 ms / 5,000 ms
コード長 400 bytes
コンパイル時間 2,041 ms
コンパイル使用メモリ 74,048 KB
実行使用メモリ 54,120 KB
最終ジャッジ日時 2024-10-10 03:44:35
合計ジャッジ時間 3,913 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int my = sc.nextInt();
		int you = sc.nextInt();
		if(my==you){
			System.out.println("Drew");
		}else{
			int result = my-you;
			if(result == 2||result==-1){
				System.out.println("Won");
			}else{
				System.out.println("Lost");
			}
		}

	}// mainmethod

} // class
0