結果

問題 No.2194 兄弟の掛け引き
ユーザー strangerxxxstrangerxxx
提出日時 2023-01-20 21:25:20
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 326 bytes
コンパイル時間 271 ms
コンパイル使用メモリ 86,956 KB
実行使用メモリ 71,520 KB
最終ジャッジ日時 2023-09-05 13:32:54
合計ジャッジ時間 2,425 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,400 KB
testcase_01 AC 74 ms
71,188 KB
testcase_02 AC 74 ms
70,996 KB
testcase_03 AC 74 ms
71,336 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 73 ms
71,172 KB
testcase_08 WA -
testcase_09 AC 73 ms
71,360 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 74 ms
71,296 KB
testcase_14 AC 74 ms
71,128 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 = []
    if i > 0:
        ans.append(i)
    if i * a <= b and j > 0:
        ans.append(j)
    if not ans:
        print(-1)
        return
    for i in sorted(ans):
        print(i)


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