結果

問題 No.1198 お菓子配り-1
ユーザー aqua_tenhouaqua_tenhou
提出日時 2022-01-04 19:30:19
言語 PyPy3
(7.3.13)
結果
WA  
実行時間 -
コード長 129 bytes
コンパイル時間 1,252 ms
コンパイル使用メモリ 86,976 KB
実行使用メモリ 71,476 KB
最終ジャッジ日時 2023-08-04 18:06:12
合計ジャッジ時間 2,580 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
71,208 KB
testcase_01 AC 66 ms
70,988 KB
testcase_02 AC 63 ms
71,396 KB
testcase_03 AC 65 ms
71,300 KB
testcase_04 AC 66 ms
71,208 KB
testcase_05 AC 66 ms
71,036 KB
testcase_06 AC 65 ms
71,244 KB
testcase_07 AC 65 ms
71,416 KB
testcase_08 AC 63 ms
71,476 KB
testcase_09 AC 63 ms
71,456 KB
testcase_10 AC 66 ms
71,204 KB
testcase_11 AC 66 ms
71,300 KB
testcase_12 AC 67 ms
71,224 KB
testcase_13 AC 67 ms
71,456 KB
testcase_14 AC 67 ms
71,252 KB
testcase_15 AC 65 ms
71,216 KB
testcase_16 AC 66 ms
71,340 KB
testcase_17 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

if n == 1 or n == 2:
    print(-1)
elif n%2 == 1:
    print(1)
elif n%4 == 0:
    print(1)
else:
    print(-1)
0