結果

問題 No.2194 兄弟の掛け引き
ユーザー first_vilfirst_vil
提出日時 2023-02-03 16:56:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 78 ms / 1,000 ms
コード長 164 bytes
コンパイル時間 331 ms
コンパイル使用メモリ 86,836 KB
実行使用メモリ 75,436 KB
最終ジャッジ日時 2023-09-15 12:19:26
合計ジャッジ時間 2,599 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
75,236 KB
testcase_01 AC 78 ms
75,300 KB
testcase_02 AC 76 ms
75,312 KB
testcase_03 AC 77 ms
75,324 KB
testcase_04 AC 77 ms
75,416 KB
testcase_05 AC 78 ms
75,284 KB
testcase_06 AC 76 ms
75,372 KB
testcase_07 AC 74 ms
75,288 KB
testcase_08 AC 75 ms
75,352 KB
testcase_09 AC 77 ms
75,372 KB
testcase_10 AC 76 ms
75,400 KB
testcase_11 AC 77 ms
75,224 KB
testcase_12 AC 77 ms
75,420 KB
testcase_13 AC 77 ms
75,412 KB
testcase_14 AC 77 ms
75,248 KB
testcase_15 AC 78 ms
75,304 KB
testcase_16 AC 78 ms
75,436 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,c=map(int,input().split())
f=True
for i in range(1,200010):
    x=i*a
    if x>b:
        x-=b
    if x==c:
        f=False
        print(i)
if f:
    print(-1)
0