結果

問題 No.264 じゃんけん
ユーザー nesaianesaia
提出日時 2017-04-17 16:33:19
言語 Java21
(openjdk 21)
結果
AC  
実行時間 129 ms / 5,000 ms
コード長 496 bytes
コンパイル時間 3,256 ms
コンパイル使用メモリ 71,792 KB
実行使用メモリ 56,048 KB
最終ジャッジ日時 2023-09-26 10:42:15
合計ジャッジ時間 5,283 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,440 KB
testcase_01 AC 125 ms
55,728 KB
testcase_02 AC 124 ms
55,820 KB
testcase_03 AC 124 ms
56,048 KB
testcase_04 AC 126 ms
55,832 KB
testcase_05 AC 128 ms
55,936 KB
testcase_06 AC 129 ms
55,348 KB
testcase_07 AC 123 ms
55,384 KB
testcase_08 AC 125 ms
55,840 KB
権限があれば一括ダウンロードができます

ソースコード

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