結果

問題 No.2194 兄弟の掛け引き
ユーザー kukutonikukutoni
提出日時 2023-06-30 14:27:34
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 267 bytes
コンパイル時間 255 ms
コンパイル使用メモリ 10,480 KB
実行使用メモリ 8,008 KB
最終ジャッジ日時 2023-09-21 07:53:20
合計ジャッジ時間 1,767 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 15 ms
7,956 KB
testcase_02 AC 15 ms
7,844 KB
testcase_03 AC 15 ms
7,892 KB
testcase_04 AC 15 ms
7,768 KB
testcase_05 AC 15 ms
7,944 KB
testcase_06 AC 15 ms
7,764 KB
testcase_07 AC 15 ms
7,844 KB
testcase_08 AC 15 ms
7,908 KB
testcase_09 AC 19 ms
7,800 KB
testcase_10 AC 18 ms
7,824 KB
testcase_11 AC 97 ms
7,780 KB
testcase_12 AC 96 ms
7,768 KB
testcase_13 AC 96 ms
7,768 KB
testcase_14 WA -
testcase_15 AC 76 ms
7,812 KB
testcase_16 AC 71 ms
7,808 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

for N in range(1, B + C):
    num = N
    num *= A 
    if num > B:
    	num -= B
    if num == C:
        count.append(N)

if len(count) != 0:
    count.sort()
    for s in count:
        print(s)
else:
    print("-1")
0