結果

問題 No.2194 兄弟の掛け引き
ユーザー HydruHydru
提出日時 2023-01-20 21:28:17
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 72 ms / 1,000 ms
コード長 204 bytes
コンパイル時間 260 ms
コンパイル使用メモリ 87,104 KB
実行使用メモリ 71,560 KB
最終ジャッジ日時 2023-09-05 13:37:09
合計ジャッジ時間 2,330 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,208 KB
testcase_01 AC 71 ms
71,376 KB
testcase_02 AC 71 ms
71,296 KB
testcase_03 AC 70 ms
71,440 KB
testcase_04 AC 71 ms
71,172 KB
testcase_05 AC 71 ms
71,560 KB
testcase_06 AC 72 ms
71,048 KB
testcase_07 AC 71 ms
71,304 KB
testcase_08 AC 71 ms
71,444 KB
testcase_09 AC 71 ms
71,464 KB
testcase_10 AC 71 ms
71,476 KB
testcase_11 AC 72 ms
71,428 KB
testcase_12 AC 71 ms
71,324 KB
testcase_13 AC 71 ms
71,044 KB
testcase_14 AC 69 ms
71,120 KB
testcase_15 AC 70 ms
71,052 KB
testcase_16 AC 69 ms
71,324 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,c=map(int,input().split())

ans=[]
if (b+c)%a==0:
    ans.append((b+c)//a)

if c<=b and c%a==0:
    ans.append(c//a)

ans.sort()

if len(ans)!=0:
    for x in ans:
        print(x)
else:
    print(-1)
0