結果

問題 No.2194 兄弟の掛け引き
ユーザー machoniumpmachoniump
提出日時 2023-09-18 20:16:08
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 172 bytes
コンパイル時間 831 ms
コンパイル使用メモリ 10,668 KB
実行使用メモリ 7,948 KB
最終ジャッジ日時 2023-09-18 20:16:13
合計ジャッジ時間 1,988 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
7,840 KB
testcase_01 AC 39 ms
7,768 KB
testcase_02 AC 39 ms
7,932 KB
testcase_03 AC 39 ms
7,768 KB
testcase_04 AC 38 ms
7,744 KB
testcase_05 AC 40 ms
7,740 KB
testcase_06 AC 39 ms
7,800 KB
testcase_07 AC 40 ms
7,804 KB
testcase_08 AC 43 ms
7,752 KB
testcase_09 AC 40 ms
7,848 KB
testcase_10 AC 41 ms
7,892 KB
testcase_11 AC 42 ms
7,740 KB
testcase_12 AC 42 ms
7,824 KB
testcase_13 AC 41 ms
7,764 KB
testcase_14 WA -
testcase_15 AC 41 ms
7,800 KB
testcase_16 AC 40 ms
7,852 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,c=map(int,input().split())
cnt=0
for i in range(1,10**5+1):
    s=a*i-b
    if s<=0:
        s+=b
    if s==c:
        print(i)
        cnt+=1
if cnt==0:
    print(-1)
0