結果

問題 No.2194 兄弟の掛け引き
ユーザー ねぎとろねぎとろ
提出日時 2023-06-18 13:57:19
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 272 bytes
コンパイル時間 91 ms
コンパイル使用メモリ 10,760 KB
実行使用メモリ 8,004 KB
最終ジャッジ日時 2023-09-08 09:55:09
合計ジャッジ時間 1,216 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,792 KB
testcase_01 AC 15 ms
7,796 KB
testcase_02 AC 15 ms
7,752 KB
testcase_03 AC 17 ms
7,868 KB
testcase_04 AC 16 ms
7,876 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 16 ms
7,788 KB
testcase_08 AC 16 ms
7,944 KB
testcase_09 AC 16 ms
7,832 KB
testcase_10 AC 15 ms
7,976 KB
testcase_11 AC 16 ms
7,796 KB
testcase_12 WA -
testcase_13 AC 15 ms
7,800 KB
testcase_14 AC 15 ms
7,752 KB
testcase_15 WA -
testcase_16 AC 15 ms
7,984 KB
権限があれば一括ダウンロードができます

ソースコード

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()
    for r in result:
        print(r)
else:
    print("-1")
0