結果
問題 |
No.1198 お菓子配り-1
|
ユーザー |
![]() |
提出日時 | 2020-08-28 21:34:19 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 655 bytes |
コンパイル時間 | 375 ms |
コンパイル使用メモリ | 82,244 KB |
実行使用メモリ | 111,124 KB |
最終ジャッジ日時 | 2024-11-13 23:52:21 |
合計ジャッジ時間 | 4,689 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 13 TLE * 1 |
ソースコード
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 break return flag flag=make_divisors(N) if flag: print(1) else: print(-1) main()