結果

問題 No.2194 兄弟の掛け引き
ユーザー n_nan_na
提出日時 2023-01-21 02:47:31
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 221 bytes
コンパイル時間 304 ms
コンパイル使用メモリ 87,208 KB
実行使用メモリ 71,660 KB
最終ジャッジ日時 2023-09-05 18:43:08
合計ジャッジ時間 2,726 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
71,424 KB
testcase_01 WA -
testcase_02 AC 75 ms
71,496 KB
testcase_03 WA -
testcase_04 AC 77 ms
71,092 KB
testcase_05 AC 77 ms
71,324 KB
testcase_06 WA -
testcase_07 AC 76 ms
71,380 KB
testcase_08 AC 79 ms
71,120 KB
testcase_09 WA -
testcase_10 AC 78 ms
71,320 KB
testcase_11 AC 76 ms
71,092 KB
testcase_12 WA -
testcase_13 AC 77 ms
71,372 KB
testcase_14 WA -
testcase_15 AC 77 ms
71,404 KB
testcase_16 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

res = []
if C%A == 0 and C//A <= A/B:
    res.append(C//A)
if (B+C)%A == 0 and (B+C)//A > A/B:
    res.append((B+C)//A)
if not res:
    print(-1)
else:
    for v in res:
        print(v)
0