結果
問題 |
No.306 さいたま2008
|
ユーザー |
![]() |
提出日時 | 2015-11-29 21:00:23 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 376 bytes |
コンパイル時間 | 667 ms |
コンパイル使用メモリ | 54,376 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-14 05:17:57 |
合計ジャッジ時間 | 1,280 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 21 WA * 2 |
ソースコード
#include <iostream> #include <string> using namespace std; int main() { /// y軸に点対称なA'とBの線分を引き、y軸との交点を算出 int xa, ya, xb, yb; cin >> xa >> ya; cin >> xb >> yb; if (ya == yb) { cout << ya << endl; } else { cout << (double(ya) + double(yb - ya) * xa / (xa + xb)) << endl; } return 0; }