結果
問題 |
No.1198 お菓子配り-1
|
ユーザー |
![]() |
提出日時 | 2025-03-20 21:11:34 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 38 ms / 2,000 ms |
コード長 | 186 bytes |
コンパイル時間 | 192 ms |
コンパイル使用メモリ | 82,544 KB |
実行使用メモリ | 53,168 KB |
最終ジャッジ日時 | 2025-03-20 21:12:18 |
合計ジャッジ時間 | 1,569 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 14 |
ソースコード
n = int(input().strip()) if n == 1: print(-1) elif n % 2 == 1: print(1) else: if n % 4 != 0: print(-1) else: k = n // 4 print(1 if k >= 2 else -1)