結果

問題 No.1198 お菓子配り-1
ユーザー c-yan
提出日時 2020-08-28 22:25:42
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 168 bytes
コンパイル時間 403 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 21,376 KB
最終ジャッジ日時 2024-11-14 01:17:13
合計ジャッジ時間 4,716 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 11 WA * 2 TLE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

for i in range(1, int(N ** 0.5) + 1):
    if N % i == 0:
        if (N // i - i) % 2 == 0:
            print(1)
            break
else:
    print(-1)
0