結果

問題 No.531 エヌスクミ島の平和協定
ユーザー fkwnw3_1243
提出日時 2017-09-07 21:23:18
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 570 bytes
コンパイル時間 3,186 ms
コンパイル使用メモリ 74,788 KB
実行使用メモリ 50,228 KB
最終ジャッジ日時 2024-11-07 11:11:33
合計ジャッジ時間 6,483 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 33 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

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

import static java.lang.System.in;

public class No531 {
    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(in));

        String[] inputs = reader.readLine().split(" ");
        int n = Integer.parseInt(inputs[0]);
        int m = Integer.parseInt(inputs[1]);

        if (n <= m) {
            System.out.println(1);
        } else {
            System.out.println(-1);
        }
    }
}
0