結果

問題 No.531 エヌスクミ島の平和協定
ユーザー YamaKasaYamaKasa
提出日時 2018-06-02 21:22:02
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 416 bytes
コンパイル時間 2,663 ms
コンパイル使用メモリ 70,940 KB
実行使用メモリ 58,064 KB
最終ジャッジ日時 2023-09-12 21:39:51
合計ジャッジ時間 8,817 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,884 KB
testcase_01 AC 124 ms
55,724 KB
testcase_02 AC 122 ms
54,176 KB
testcase_03 AC 122 ms
55,368 KB
testcase_04 WA -
testcase_05 AC 123 ms
55,820 KB
testcase_06 WA -
testcase_07 AC 122 ms
56,056 KB
testcase_08 WA -
testcase_09 AC 125 ms
55,800 KB
testcase_10 WA -
testcase_11 AC 123 ms
56,424 KB
testcase_12 AC 123 ms
56,188 KB
testcase_13 AC 122 ms
56,152 KB
testcase_14 AC 122 ms
55,824 KB
testcase_15 AC 123 ms
56,296 KB
testcase_16 WA -
testcase_17 AC 124 ms
55,516 KB
testcase_18 AC 120 ms
55,668 KB
testcase_19 AC 120 ms
55,944 KB
testcase_20 AC 122 ms
56,340 KB
testcase_21 AC 121 ms
55,800 KB
testcase_22 AC 122 ms
55,684 KB
testcase_23 AC 121 ms
55,948 KB
testcase_24 AC 123 ms
56,316 KB
testcase_25 AC 122 ms
55,960 KB
testcase_26 AC 123 ms
55,684 KB
testcase_27 AC 122 ms
55,796 KB
testcase_28 AC 121 ms
55,840 KB
testcase_29 AC 123 ms
55,788 KB
testcase_30 AC 123 ms
53,744 KB
testcase_31 AC 122 ms
55,940 KB
testcase_32 AC 121 ms
55,964 KB
testcase_33 AC 122 ms
56,072 KB
testcase_34 AC 123 ms
55,756 KB
testcase_35 AC 122 ms
55,908 KB
testcase_36 AC 122 ms
55,912 KB
testcase_37 AC 123 ms
56,060 KB
testcase_38 AC 121 ms
55,736 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		scan.close();

		if(m >= n) {
			System.out.println(1);
		}else {
			if(n == 4 && m == 3) {
				System.out.println(3);
			}else if(n == 5 && (m == 3 || m == 4)) {
				System.out.println(3);
			}
			System.out.println(-1);
		}


	}
}
0