結果

問題 No.2194 兄弟の掛け引き
ユーザー rlangevinrlangevin
提出日時 2023-01-20 21:27:48
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 73 ms / 1,000 ms
コード長 240 bytes
コンパイル時間 257 ms
コンパイル使用メモリ 87,184 KB
実行使用メモリ 71,408 KB
最終ジャッジ日時 2023-09-05 13:36:15
合計ジャッジ時間 2,325 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,204 KB
testcase_01 AC 71 ms
71,272 KB
testcase_02 AC 71 ms
71,204 KB
testcase_03 AC 70 ms
71,300 KB
testcase_04 AC 73 ms
71,376 KB
testcase_05 AC 72 ms
71,204 KB
testcase_06 AC 72 ms
71,148 KB
testcase_07 AC 71 ms
71,408 KB
testcase_08 AC 72 ms
71,072 KB
testcase_09 AC 71 ms
71,204 KB
testcase_10 AC 70 ms
71,288 KB
testcase_11 AC 71 ms
71,244 KB
testcase_12 AC 71 ms
71,408 KB
testcase_13 AC 72 ms
71,048 KB
testcase_14 AC 73 ms
71,064 KB
testcase_15 AC 72 ms
71,008 KB
testcase_16 AC 72 ms
71,244 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A, B, C = map(int, input().split())
ans = []
if C % A == 0:
    N = C // A
    if N*A <= B:
        ans.append(C // A)
if (C + B) % A == 0:
    ans.append((C + B)//A)
ans.sort()
if ans:
    for a in ans:
        print(a)
else:
    print(-1)
0