結果

問題 No.264 じゃんけん
ユーザー Ryota EnokidoRyota Enokido
提出日時 2018-12-09 20:46:33
言語 Java21
(openjdk 21)
結果
AC  
実行時間 128 ms / 5,000 ms
コード長 462 bytes
コンパイル時間 2,025 ms
コンパイル使用メモリ 71,736 KB
実行使用メモリ 55,916 KB
最終ジャッジ日時 2023-10-14 21:50:20
合計ジャッジ時間 3,867 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
55,840 KB
testcase_01 AC 128 ms
55,428 KB
testcase_02 AC 126 ms
55,820 KB
testcase_03 AC 128 ms
55,728 KB
testcase_04 AC 127 ms
55,916 KB
testcase_05 AC 126 ms
55,732 KB
testcase_06 AC 126 ms
55,640 KB
testcase_07 AC 126 ms
55,808 KB
testcase_08 AC 127 ms
55,700 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("Lost");
         }else{
             System.out.println("Won");
         }
     }
 }
0