結果

問題 No.264 じゃんけん
ユーザー Katooooo
提出日時 2017-09-12 13:49:39
言語 Java
(openjdk 23)
結果
AC  
実行時間 139 ms / 5,000 ms
コード長 780 bytes
コンパイル時間 2,661 ms
コンパイル使用メモリ 74,172 KB
実行使用メモリ 41,212 KB
最終ジャッジ日時 2024-11-07 17:17:18
合計ジャッジ時間 4,591 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    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){
            if(K==1){
                System.out.println("Won");
            }else{
                System.out.println("Lost");
            }
        }else if(N==1){
            if(K==0){
                System.out.println("Lost");
            }else{
                System.out.println("Won");
            }
        }else{
            if(K==0){
                System.out.println("Won");
            }else{
                System.out.println("Lost");
            }
        }
        
    }
}
0