結果

問題 No.264 じゃんけん
ユーザー ryunocchiryunocchi
提出日時 2019-04-07 00:27:12
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 5,000 ms
コード長 385 bytes
コンパイル時間 4,847 ms
コンパイル使用メモリ 70,568 KB
実行使用メモリ 56,132 KB
最終ジャッジ日時 2023-09-07 12:29:47
合計ジャッジ時間 4,397 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
55,932 KB
testcase_01 AC 118 ms
55,500 KB
testcase_02 AC 118 ms
55,484 KB
testcase_03 AC 117 ms
55,892 KB
testcase_04 AC 117 ms
55,796 KB
testcase_05 AC 121 ms
55,696 KB
testcase_06 AC 118 ms
55,440 KB
testcase_07 AC 119 ms
55,792 KB
testcase_08 AC 117 ms
56,132 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class Main{
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();

        if(a == b){
          System.out.println("Drew");
        }else if((a + 1) % 3 == b){
          System.out.println("Won");
        }else{
          System.out.println("Lost");
        }
    }
}
0