結果
| 問題 | No.1198 お菓子配り-1 |
| コンテスト | |
| ユーザー |
uni_python
|
| 提出日時 | 2020-08-28 21:34:05 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
TLE
不安定
|
| 実行時間 | - |
| コード長 | 625 bytes |
| 記録 | |
| コンパイル時間 | 63 ms |
| コンパイル使用メモリ | 82,632 KB |
| 実行使用メモリ | 61,652 KB |
| 最終ジャッジ日時 | 2026-09-21 21:10:05 |
| 合計ジャッジ時間 | 6,760 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 7 TLE * 1 -- * 6 |
ソースコード
import sys
input=sys.stdin.readline
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))
def main():
mod=10**9+7
N=I()
#約数列挙
def make_divisors(n):
flag=0
for i in range(1, int(n**0.5)+1):
if n % i == 0:
a=i
b=n //i
if i != n // i:
if (a-b)%2==0:
flag=1
return flag
flag=make_divisors(N)
if flag:
print(1)
else:
print(-1)
main()
uni_python