結果
| 問題 | No.1198 お菓子配り-1 |
| コンテスト | |
| ユーザー |
双六
|
| 提出日時 | 2020-08-30 02:57:44 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 346 bytes |
| 記録 | |
| コンパイル時間 | 139 ms |
| コンパイル使用メモリ | 85,504 KB |
| 実行使用メモリ | 53,632 KB |
| 最終ジャッジ日時 | 2026-05-10 03:14:18 |
| 合計ジャッジ時間 | 1,688 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 12 WA * 2 |
ソースコード
import sys; input = sys.stdin.buffer.readline
sys.setrecursionlimit(10**7)
from collections import defaultdict
con = 10 ** 9 + 7; INF = float("inf")
def getlist():
return list(map(int, input().split()))
#処理内容
def main():
N = int(input())
if N % 4 != 0 and N % 2 == 0:
print(-1)
else:
print(1)
if __name__ == '__main__':
main()
双六