結果

問題 No.1198 お菓子配り-1
ユーザー kojihashimoto-kobekojihashimoto-kobe
提出日時 2023-02-20 06:32:29
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 171 bytes
コンパイル時間 179 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 52,096 KB
最終ジャッジ日時 2024-07-21 01:28:50
合計ジャッジ時間 1,692 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

if n <= 2:
  print(-1)
  exit()

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