結果

問題 No.264 じゃんけん
ユーザー hikari2004
提出日時 2016-04-20 13:58:07
言語 Java
(openjdk 23)
結果
AC  
実行時間 132 ms / 5,000 ms
コード長 402 bytes
コンパイル時間 4,367 ms
コンパイル使用メモリ 75,740 KB
実行使用メモリ 54,340 KB
最終ジャッジ日時 2024-10-04 14:24:59
合計ジャッジ時間 5,426 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No264 {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt(); //自分の手
		int k = sc.nextInt(); //相手の手

		if(n == k){
			System.out.println("Drew");
		}else if(n == 0 && k == 1 || n == 1 && k == 2 || n == 2 && k == 0){
			System.out.println("Won");
		}else{
			System.out.println("Lost");
		}

	}
}
0