結果

問題 No.264 じゃんけん
ユーザー yu_017
提出日時 2019-01-13 19:11:12
言語 Java
(openjdk 23)
結果
AC  
実行時間 159 ms / 5,000 ms
コード長 381 bytes
コンパイル時間 4,447 ms
コンパイル使用メモリ 74,828 KB
実行使用メモリ 41,352 KB
最終ジャッジ日時 2024-12-26 01:24:39
合計ジャッジ時間 6,511 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class A000264 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int me = sc.nextInt();
		int you = sc.nextInt();
		sc.close();
		String res = "";
		if(you==me) {
			res="Drew";
		}else {
			if(you==0)you+=3;
			if(me+1==you) {
				res="Won";
			}else {
				res="Lost";
			}
		}
		System.out.println(res);
	}

}
0