結果
| 問題 | No.1198 お菓子配り-1 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-02-10 23:56:58 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 250 bytes |
| 記録 | |
| コンパイル時間 | 299 ms |
| コンパイル使用メモリ | 21,544 KB |
| 実行使用メモリ | 15,992 KB |
| 最終ジャッジ日時 | 2026-07-30 09:38:57 |
| 合計ジャッジ時間 | 3,191 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 13 WA * 1 |
ソースコード
N = input()
if len(N) == 1:
n = int(N)
if n > 1 and (n % 2 == 1 or n % 4 == 0):
print(1)
else:
print(-1)
else:
n = int(N[-2:])
if n % 2 == 1 or n % 4 == 0:
print(1)
else:
print(-1)