結果

問題 No.2194 兄弟の掛け引き
コンテスト
ユーザー rlangevin
提出日時 2023-01-20 21:27:48
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 24 ms / 1,000 ms
コード長 240 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 522 ms
コンパイル使用メモリ 85,292 KB
実行使用メモリ 54,108 KB
最終ジャッジ日時 2026-03-08 02:42:49
合計ジャッジ時間 1,020 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

A, B, C = map(int, input().split())
ans = []
if C % A == 0:
    N = C // A
    if N*A <= B:
        ans.append(C // A)
if (C + B) % A == 0:
    ans.append((C + B)//A)
ans.sort()
if ans:
    for a in ans:
        print(a)
else:
    print(-1)
0