結果

問題 No.538 N.G.S.
ユーザー fagfagdfa
提出日時 2017-08-23 16:47:40
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 329 bytes
コンパイル時間 1,549 ms
コンパイル使用メモリ 27,136 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-15 13:05:47
合計ジャッジ時間 2,285 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 37 WA * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <string.h>

int main()
{
        double b1, b2, b3;

        scanf("%lf %lf %lf", &b1, &b2, &b3);

        double r, d, y;

        r = (b2 - b3) / (b1 - b2);
        d = ((b2 * (b1 - b2)) - (b1 * (b2 - b3))) / (b1 - b2);


        y = b3 * r + d;

        printf("%d\n", (int)y);

        return 0;
}
0