結果

問題 No.264 じゃんけん
ユーザー face4face4
提出日時 2018-04-09 17:38:48
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 649 bytes
コンパイル時間 1,852 ms
コンパイル使用メモリ 71,748 KB
実行使用メモリ 49,932 KB
最終ジャッジ日時 2023-09-09 03:28:26
合計ジャッジ時間 3,129 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 42 ms
49,816 KB
testcase_02 AC 42 ms
49,264 KB
testcase_03 AC 42 ms
49,368 KB
testcase_04 WA -
testcase_05 AC 42 ms
49,428 KB
testcase_06 AC 41 ms
49,488 KB
testcase_07 AC 41 ms
49,624 KB
testcase_08 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;

class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] input = br.readLine().split(" ");

        int result = Integer.parseInt(input[0]) - Integer.parseInt(input[1]);

        if (result == 0) {
            System.out.println("result");
        } else if (result == 1 || result == -2) {
            System.out.println("Lost");
        } else if (result == 2 || result == -1) {
            System.out.println("Won");
        }
    }
}
0