結果

問題 No.1199 お菓子配り-2
ユーザー Mister
提出日時 2020-08-28 21:46:34
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 144 bytes
コンパイル時間 230 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-11-14 03:15:51
合計ジャッジ時間 5,333 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 3
other RE * 45
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

n = int(input())

if n == 1 or n == 4:
    print(-1)
    sys.exit(0)

while n % 4 == 0:
    n //= 4

print(-1 if n % 2 == 0 else 1)
0