結果

問題 No.1198 お菓子配り-1
ユーザー 山口一章山口一章
提出日時 2020-08-29 03:57:23
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 249 bytes
コンパイル時間 2,620 ms
コンパイル使用メモリ 73,752 KB
実行使用メモリ 41,556 KB
最終ジャッジ日時 2024-04-26 15:57:51
合計ジャッジ時間 5,834 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 111 ms
40,024 KB
testcase_01 AC 117 ms
41,036 KB
testcase_02 AC 114 ms
40,764 KB
testcase_03 AC 107 ms
40,208 KB
testcase_04 AC 115 ms
40,732 KB
testcase_05 AC 107 ms
39,856 KB
testcase_06 AC 117 ms
41,192 KB
testcase_07 AC 115 ms
40,428 KB
testcase_08 AC 118 ms
41,216 KB
testcase_09 AC 120 ms
41,276 KB
testcase_10 AC 115 ms
40,628 KB
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 AC 120 ms
41,184 KB
testcase_17 AC 109 ms
40,052 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
class Main {
    public static void main(String[] args) {
        var scanner = new Scanner(System.in);
        var n = scanner.nextLong();
        System.out.println(n % 2 == 1 && n >=3 || n % 4 == 0 && n >= 8 ? 1 : -1);
    }
}
0