結果

問題 No.2194 兄弟の掛け引き
ユーザー strangerxxxstrangerxxx
提出日時 2023-01-20 21:27:06
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 323 bytes
コンパイル時間 884 ms
コンパイル使用メモリ 87,132 KB
実行使用メモリ 71,584 KB
最終ジャッジ日時 2023-09-05 13:35:18
合計ジャッジ時間 2,407 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,272 KB
testcase_01 AC 71 ms
71,460 KB
testcase_02 AC 72 ms
71,400 KB
testcase_03 AC 72 ms
71,472 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 72 ms
71,300 KB
testcase_08 WA -
testcase_09 AC 72 ms
71,464 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 73 ms
71,440 KB
testcase_14 AC 73 ms
71,448 KB
testcase_15 WA -
testcase_16 AC 72 ms
71,576 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def resolve():
    a, b, c = map(int, input().split())
    i = c // a
    j = (c + b) // a
    ans = set()
    if i > 0:
        ans.add(i)
    if j * a >= b and j > 0:
        ans.add(j)
    if not ans:
        print(-1)
        return
    for i in sorted(ans):
        print(i)


if __name__ == "__main__":
    resolve()
0