結果
| 問題 |
No.1198 お菓子配り-1
|
| コンテスト | |
| ユーザー |
shimariasu
|
| 提出日時 | 2020-08-29 09:57:42 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 371 bytes |
| コンパイル時間 | 111 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 21,632 KB |
| 最終ジャッジ日時 | 2024-11-14 05:16:39 |
| 合計ジャッジ時間 | 16,301 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 7 WA * 2 TLE * 5 |
ソースコード
def divisor(n):
d = []
i = 1
while i * i <= n:
if n % i == 0:
d.append(i)
i += 1
return d
n = int(input())
d = divisor(n)
ans = -1
for small in d:
big = n // small
if (big - small) % 2 == 0:
if 0 < big - (big - small) // 2:
ans = 1
break
print(ans)
shimariasu