結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,380 KB
testcase_01 AC 72 ms
71,448 KB
testcase_02 AC 75 ms
71,340 KB
testcase_03 AC 72 ms
71,432 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 72 ms
71,388 KB
testcase_08 WA -
testcase_09 AC 73 ms
71,384 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 72 ms
71,272 KB
testcase_14 AC 72 ms
71,244 KB
testcase_15 WA -
testcase_16 AC 73 ms
71,188 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