結果
| 問題 | No.306 さいたま2008 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-11-11 16:18:58 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 299 bytes |
| 記録 | |
| コンパイル時間 | 532 ms |
| コンパイル使用メモリ | 70,128 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-18 21:20:33 |
| 合計ジャッジ時間 | 1,855 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 WA * 3 |
ソースコード
#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;
}