結果
問題 | No.531 エヌスクミ島の平和協定 |
ユーザー | shinwisteria |
提出日時 | 2018-03-13 20:08:17 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 350 bytes |
コンパイル時間 | 3,661 ms |
コンパイル使用メモリ | 74,192 KB |
実行使用メモリ | 41,324 KB |
最終ジャッジ日時 | 2024-05-02 20:24:08 |
合計ジャッジ時間 | 10,015 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 135 ms
41,064 KB |
testcase_01 | AC | 136 ms
41,196 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | AC | 137 ms
40,952 KB |
testcase_05 | WA | - |
testcase_06 | AC | 134 ms
41,116 KB |
testcase_07 | AC | 137 ms
41,052 KB |
testcase_08 | AC | 135 ms
40,904 KB |
testcase_09 | AC | 137 ms
40,728 KB |
testcase_10 | AC | 130 ms
41,252 KB |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | AC | 135 ms
40,984 KB |
testcase_14 | AC | 135 ms
41,100 KB |
testcase_15 | AC | 132 ms
41,240 KB |
testcase_16 | AC | 135 ms
41,264 KB |
testcase_17 | AC | 132 ms
40,912 KB |
testcase_18 | AC | 125 ms
39,952 KB |
testcase_19 | AC | 133 ms
40,876 KB |
testcase_20 | AC | 132 ms
40,988 KB |
testcase_21 | AC | 133 ms
41,256 KB |
testcase_22 | AC | 135 ms
40,976 KB |
testcase_23 | AC | 134 ms
40,904 KB |
testcase_24 | AC | 136 ms
41,180 KB |
testcase_25 | AC | 133 ms
41,080 KB |
testcase_26 | AC | 132 ms
40,768 KB |
testcase_27 | AC | 135 ms
41,244 KB |
testcase_28 | AC | 136 ms
40,876 KB |
testcase_29 | AC | 136 ms
41,324 KB |
testcase_30 | AC | 135 ms
41,004 KB |
testcase_31 | AC | 132 ms
40,980 KB |
testcase_32 | AC | 132 ms
41,132 KB |
testcase_33 | AC | 130 ms
40,948 KB |
testcase_34 | AC | 133 ms
41,000 KB |
testcase_35 | AC | 133 ms
41,112 KB |
testcase_36 | AC | 137 ms
41,128 KB |
testcase_37 | AC | 139 ms
41,152 KB |
testcase_38 | AC | 137 ms
41,092 KB |
ソースコード
package m.shin; import java.util.Scanner; public class Con531 { public static void main(String[] args) { Scanner s = new Scanner(System.in); int n = s.nextInt() , m = s.nextInt(); s.close(); if(n == m){ System.out.println(1); }else if(n % 2 == 0 && m >= n / 2){ System.out.println(2); }else{ System.out.println(-1); } } }