結果

問題 No.2194 兄弟の掛け引き
ユーザー deepjugglingdeepjuggling
提出日時 2023-01-20 21:28:48
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 266 bytes
コンパイル時間 399 ms
コンパイル使用メモリ 86,944 KB
実行使用メモリ 75,752 KB
最終ジャッジ日時 2023-09-05 13:37:51
合計ジャッジ時間 2,615 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
75,544 KB
testcase_01 AC 75 ms
75,736 KB
testcase_02 AC 77 ms
75,512 KB
testcase_03 AC 75 ms
75,436 KB
testcase_04 AC 77 ms
75,588 KB
testcase_05 AC 77 ms
75,496 KB
testcase_06 AC 74 ms
75,588 KB
testcase_07 AC 75 ms
75,608 KB
testcase_08 AC 76 ms
75,576 KB
testcase_09 AC 76 ms
75,560 KB
testcase_10 AC 75 ms
75,572 KB
testcase_11 AC 74 ms
75,752 KB
testcase_12 AC 75 ms
75,420 KB
testcase_13 AC 75 ms
75,616 KB
testcase_14 WA -
testcase_15 AC 75 ms
75,600 KB
testcase_16 AC 76 ms
75,508 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,c = map(int,input().split())
ans = 0
fra = 0
for i in range(1,10**5+1):
    d = a*i
    if d - b > 0:
        if d - b == c:
            fra = 1
            print(i)
    else:
        if d == c:
            fra = 1
            print(i)
if fra == 0:
    print(-1)
0