結果

問題 No.2194 兄弟の掛け引き
ユーザー tassei903tassei903
提出日時 2023-01-20 21:32:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 1,000 ms
コード長 550 bytes
コンパイル時間 398 ms
コンパイル使用メモリ 87,216 KB
実行使用メモリ 71,588 KB
最終ジャッジ日時 2023-09-05 13:42:37
合計ジャッジ時間 2,526 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,388 KB
testcase_01 AC 75 ms
71,516 KB
testcase_02 AC 76 ms
71,396 KB
testcase_03 AC 76 ms
71,344 KB
testcase_04 AC 77 ms
71,112 KB
testcase_05 AC 75 ms
71,332 KB
testcase_06 AC 77 ms
71,392 KB
testcase_07 AC 75 ms
71,388 KB
testcase_08 AC 75 ms
71,352 KB
testcase_09 AC 75 ms
71,456 KB
testcase_10 AC 76 ms
71,588 KB
testcase_11 AC 74 ms
71,336 KB
testcase_12 AC 76 ms
71,384 KB
testcase_13 AC 75 ms
71,400 KB
testcase_14 AC 76 ms
71,120 KB
testcase_15 AC 75 ms
71,572 KB
testcase_16 AC 75 ms
71,336 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda :sys.stdin.readline()[:-1]
ni = lambda :int(input())
na = lambda :list(map(int,input().split()))
yes = lambda :print("yes");Yes = lambda :print("Yes");YES = lambda : print("YES")
no = lambda :print("no");No = lambda :print("No");NO = lambda : print("NO")
#######################################################################

a,b,c = na()
ans = []
if (c + b) % a == 0:
    ans.append((c+b)//a)
if c <= b and c % a == 0:
    ans.append(c//a)
if len(ans) == 0:
    print(-1)
else:
    for i in sorted(ans):
        print(i)
0