結果

問題 No.264 じゃんけん
ユーザー dazydazy
提出日時 2016-09-01 22:00:41
言語 Java21
(openjdk 21)
結果
AC  
実行時間 129 ms / 5,000 ms
コード長 552 bytes
コンパイル時間 2,045 ms
コンパイル使用メモリ 72,056 KB
実行使用メモリ 56,004 KB
最終ジャッジ日時 2023-08-09 19:53:26
合計ジャッジ時間 3,972 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,688 KB
testcase_01 AC 122 ms
55,824 KB
testcase_02 AC 122 ms
55,816 KB
testcase_03 AC 121 ms
55,680 KB
testcase_04 AC 121 ms
56,004 KB
testcase_05 AC 121 ms
55,668 KB
testcase_06 AC 120 ms
55,816 KB
testcase_07 AC 128 ms
55,752 KB
testcase_08 AC 129 ms
55,828 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Yukicoder {
    static public void main(String[] args) {
        int my,you;
        Scanner scanner = new Scanner(System.in);

        my = scanner.nextInt();
        you = scanner.nextInt();

        if (my == you) System.out.println("Drew");
        else if (you - my > 0) {
            if (my + 1 == you) System.out.println("Won");
            else System.out.println("Lost");
        } else {
            if (you + 1 == my) System.out.println("Lost");
            else System.out.println("Won");
        }
    }
}
0