結果

問題 No.264 じゃんけん
ユーザー Ryota EnokidoRyota Enokido
提出日時 2018-12-09 20:45:40
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 462 bytes
コンパイル時間 1,827 ms
コンパイル使用メモリ 71,896 KB
実行使用メモリ 58,252 KB
最終ジャッジ日時 2023-10-14 21:50:15
合計ジャッジ時間 3,775 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
58,252 KB
testcase_01 AC 119 ms
55,800 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 121 ms
55,892 KB
testcase_05 AC 119 ms
55,968 KB
testcase_06 AC 118 ms
55,760 KB
testcase_07 WA -
testcase_08 AC 119 ms
55,800 KB
権限があれば一括ダウンロードができます

ソースコード

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("Lose");
         }else{
             System.out.println("Won");
         }
     }
 }
0