結果

問題 No.2194 兄弟の掛け引き
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2023-01-20 22:05:17
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 86 ms / 1,000 ms
コード長 205 bytes
コンパイル時間 307 ms
コンパイル使用メモリ 86,656 KB
実行使用メモリ 75,564 KB
最終ジャッジ日時 2023-09-05 14:22:44
合計ジャッジ時間 2,590 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
75,428 KB
testcase_01 AC 81 ms
75,444 KB
testcase_02 AC 84 ms
75,316 KB
testcase_03 AC 81 ms
75,368 KB
testcase_04 AC 82 ms
75,320 KB
testcase_05 AC 82 ms
75,400 KB
testcase_06 AC 81 ms
75,452 KB
testcase_07 AC 82 ms
75,388 KB
testcase_08 AC 81 ms
75,384 KB
testcase_09 AC 82 ms
75,492 KB
testcase_10 AC 84 ms
75,388 KB
testcase_11 AC 84 ms
75,432 KB
testcase_12 AC 84 ms
75,472 KB
testcase_13 AC 86 ms
75,496 KB
testcase_14 AC 86 ms
75,368 KB
testcase_15 AC 81 ms
75,564 KB
testcase_16 AC 83 ms
75,420 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,c = map(int,input().split())
ans = []
for i in range(1,10**6):
    num = i*a
    if num > b:
        num -= b
    if num== c:
        ans.append(i)
if not ans:
    ans = [-1]
for i in ans:
    print(i)
0