結果
問題 | No.538 N.G.S. |
ユーザー |
![]() |
提出日時 | 2017-08-23 16:53:22 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 330 bytes |
コンパイル時間 | 180 ms |
コンパイル使用メモリ | 27,392 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-15 13:06:00 |
合計ジャッジ時間 | 1,616 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 WA * 1 |
other | AC * 22 WA * 29 |
ソースコード
#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("%ld\n", (int)y); return 0; }