結果

問題 No.1198 お菓子配り-1
ユーザー 山口一章山口一章
提出日時 2020-08-29 03:55:00
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 248 bytes
コンパイル時間 2,195 ms
コンパイル使用メモリ 74,988 KB
実行使用メモリ 54,296 KB
最終ジャッジ日時 2024-04-26 15:57:45
合計ジャッジ時間 5,211 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
54,048 KB
testcase_01 AC 109 ms
52,636 KB
testcase_02 AC 119 ms
53,304 KB
testcase_03 AC 111 ms
52,956 KB
testcase_04 AC 120 ms
53,780 KB
testcase_05 AC 110 ms
53,236 KB
testcase_06 AC 106 ms
52,648 KB
testcase_07 AC 117 ms
53,836 KB
testcase_08 AC 123 ms
53,856 KB
testcase_09 AC 123 ms
53,824 KB
testcase_10 AC 122 ms
54,004 KB
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 AC 129 ms
54,016 KB
testcase_17 AC 135 ms
54,044 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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