結果

問題 No.264 じゃんけん
ユーザー nesaia
提出日時 2017-04-17 16:33:19
言語 Java
(openjdk 23)
結果
AC  
実行時間 121 ms / 5,000 ms
コード長 496 bytes
コンパイル時間 3,013 ms
コンパイル使用メモリ 74,836 KB
実行使用メモリ 41,440 KB
最終ジャッジ日時 2024-07-19 05:25:48
合計ジャッジ時間 4,640 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

//No.264 じゃんけん
//http://yukicoder.me/problems/699
//20170417 1622

package no264;

import java.util.Scanner;

public class No264 {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n;
		int k;
		
		n = scan.nextInt();
		k = scan.nextInt();
		
		scan.close();

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

}
0