結果

問題 No.264 じゃんけん
ユーザー core123core123
提出日時 2019-04-16 15:07:10
言語 Java21
(openjdk 21)
結果
AC  
実行時間 133 ms / 5,000 ms
コード長 505 bytes
コンパイル時間 3,735 ms
コンパイル使用メモリ 74,704 KB
実行使用メモリ 57,524 KB
最終ジャッジ日時 2023-10-22 07:04:13
合計ジャッジ時間 4,231 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 130 ms
57,496 KB
testcase_01 AC 129 ms
57,464 KB
testcase_02 AC 130 ms
57,496 KB
testcase_03 AC 130 ms
57,396 KB
testcase_04 AC 133 ms
57,472 KB
testcase_05 AC 132 ms
57,516 KB
testcase_06 AC 129 ms
57,144 KB
testcase_07 AC 131 ms
57,524 KB
testcase_08 AC 132 ms
57,480 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.util.stream.*;
public class Main{
	public static void main(String... args){
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int k=sc.nextInt();
			String s=null;
		if(n==k){
			System.out.println("Drew");
			return;
		}else if(n==0){
			if(k==1){
				s="Won";
			}else{
				s="Lost";
			}
		}else if(n==1){
			if(k==0){
				s="Lost";
			}else{
				s="Won";
			}
		}else{
			if(k==0){
				s="Won";
			}else{
				s="Lost";
			}
		}
		System.out.println(s);
	}
}
0