結果
問題 | No.306 さいたま2008 |
ユーザー |
|
提出日時 | 2017-11-11 16:38:21 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 291 bytes |
コンパイル時間 | 392 ms |
コンパイル使用メモリ | 59,132 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2025-02-14 12:14:25 |
合計ジャッジ時間 | 1,225 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 26 |
ソースコード
#include <iostream>#include <cstdio>int main(){std::cin.tie(0);std::ios::sync_with_stdio(false);double ax, ay, bx, by;std::cin >> ax >> ay >> bx >> by;if(ax != bx)printf("%.10f\n", ay - ax * ((ay - by) / (ax + bx)));elseprintf("%.10f\n", (ay + by) / 2);return 0;}