結果

問題 No.2194 兄弟の掛け引き
ユーザー ねぎとろねぎとろ
提出日時 2023-06-18 13:56:29
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 283 bytes
コンパイル時間 158 ms
コンパイル使用メモリ 10,676 KB
実行使用メモリ 7,984 KB
最終ジャッジ日時 2023-09-08 09:54:22
合計ジャッジ時間 1,486 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 15 ms
7,792 KB
testcase_02 AC 15 ms
7,904 KB
testcase_03 WA -
testcase_04 AC 15 ms
7,808 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 14 ms
7,832 KB
testcase_08 AC 15 ms
7,968 KB
testcase_09 WA -
testcase_10 AC 15 ms
7,860 KB
testcase_11 AC 15 ms
7,864 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

A, B, C = map(int, input().split())
result = []

f = B // A

t = (C + B) // A
if t > f and t > 0:
    result.append(t)
t = C // A
if t <= f and t > 0:
    result.append(t)

if len(result) != 0:
    result.sort(reverse=True)
    for r in result:
        print(r)
else:
    print("-1")
0