結果
| 問題 |
No.306 さいたま2008
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-11-11 16:18:58 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 299 bytes |
| コンパイル時間 | 471 ms |
| コンパイル使用メモリ | 54,108 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-24 19:06:46 |
| 合計ジャッジ時間 | 1,267 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 21 WA * 2 |
ソースコード
#include <iostream>
int main(){
std::cin.tie(0);
std::ios::sync_with_stdio(false);
double ax, ay, bx, by;
std::cin >> ax >> ay >> bx >> by;
bx = -bx;
if(ax != bx)
std::cout << -ax * ((ay - by) / (ax - bx)) + ay << std::endl;
else
std::cout << (ay + by) / 2 << std::endl;
return 0;
}