結果

問題 No.264 じゃんけん
ユーザー Ryota Enokido
提出日時 2018-12-09 20:46:33
言語 Java
(openjdk 23)
結果
AC  
実行時間 134 ms / 5,000 ms
コード長 462 bytes
コンパイル時間 1,955 ms
コンパイル使用メモリ 74,212 KB
実行使用メモリ 41,480 KB
最終ジャッジ日時 2024-09-16 15:32:33
合計ジャッジ時間 3,765 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
 
 public class Main {
     public static void main(String[] args) {
         Scanner sc = new Scanner(System.in);
         
         int mine = sc.nextInt();
         int your = sc.nextInt();
         
         if(mine==your){
             System.out.println("Drew");
         }else if(mine-your==1 || mine-your==-2){
             System.out.println("Lost");
         }else{
             System.out.println("Won");
         }
     }
 }
0