結果

問題 No.538 N.G.S.
ユーザー ThetaTheta
提出日時 2022-10-24 18:50:54
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 263 bytes
コンパイル時間 76 ms
コンパイル使用メモリ 10,572 KB
実行使用メモリ 9,168 KB
最終ジャッジ日時 2023-09-15 20:17:45
合計ジャッジ時間 3,789 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 21 ms
8,972 KB
testcase_01 AC 20 ms
9,132 KB
testcase_02 AC 20 ms
9,048 KB
testcase_03 AC 20 ms
8,964 KB
testcase_04 AC 20 ms
8,948 KB
testcase_05 AC 20 ms
9,064 KB
testcase_06 AC 19 ms
9,052 KB
testcase_07 AC 20 ms
9,132 KB
testcase_08 AC 20 ms
8,968 KB
testcase_09 AC 20 ms
8,976 KB
testcase_10 AC 20 ms
8,984 KB
testcase_11 AC 20 ms
8,924 KB
testcase_12 AC 20 ms
9,052 KB
testcase_13 AC 20 ms
8,968 KB
testcase_14 AC 20 ms
9,044 KB
testcase_15 AC 20 ms
9,016 KB
testcase_16 WA -
testcase_17 AC 19 ms
9,168 KB
testcase_18 AC 20 ms
8,988 KB
testcase_19 AC 20 ms
8,984 KB
testcase_20 AC 20 ms
9,048 KB
testcase_21 AC 20 ms
9,136 KB
testcase_22 AC 19 ms
8,952 KB
testcase_23 AC 20 ms
9,128 KB
testcase_24 AC 19 ms
8,976 KB
testcase_25 AC 20 ms
8,888 KB
testcase_26 AC 19 ms
9,140 KB
testcase_27 AC 19 ms
9,016 KB
testcase_28 AC 19 ms
9,128 KB
testcase_29 AC 19 ms
8,972 KB
testcase_30 AC 19 ms
8,948 KB
testcase_31 AC 19 ms
8,960 KB
testcase_32 AC 20 ms
9,036 KB
testcase_33 AC 19 ms
9,020 KB
testcase_34 AC 20 ms
8,972 KB
testcase_35 AC 19 ms
9,076 KB
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 AC 19 ms
8,940 KB
testcase_41 AC 20 ms
8,956 KB
testcase_42 AC 19 ms
9,052 KB
testcase_43 AC 19 ms
9,136 KB
testcase_44 AC 19 ms
8,960 KB
testcase_45 AC 19 ms
9,032 KB
testcase_46 AC 19 ms
8,984 KB
testcase_47 AC 20 ms
8,928 KB
testcase_48 AC 19 ms
8,984 KB
testcase_49 WA -
testcase_50 AC 20 ms
9,048 KB
testcase_51 WA -
testcase_52 AC 19 ms
9,048 KB
testcase_53 WA -
testcase_54 AC 20 ms
9,132 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import Decimal


def main():
    b = list(map(Decimal, input().split()))
    if b[0] == b[1]:
        print(b[0])
        return
    r = ((b[2]-b[1])/(b[1]-b[0]))
    d = b[1] - r*b[0]
    print(int(r*b[2]+d))


if __name__ == "__main__":
    main()
0