結果
| 問題 |
No.306 さいたま2008
|
| コンテスト | |
| ユーザー |
furu_tuww
|
| 提出日時 | 2016-07-10 00:02:38 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 411 bytes |
| コンパイル時間 | 605 ms |
| コンパイル使用メモリ | 63,364 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-13 09:47:41 |
| 合計ジャッジ時間 | 1,356 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 21 WA * 2 |
ソースコード
#include <cstdio>
#include <cmath>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
#define rt(x) ((x)*(x))
int xa,ya;
int xb,yb;
int main(void){
cin >> xa >> ya >> xb >> yb;
if(ya > yb){
swap(xa,xb);
swap(ya,yb);
}
double p = ya+(yb-ya)*(((double)xa/(double)(xa+xb)));
cout << p << endl;
//cout << sqrt(rt(xa)+rt(p-ya)) + sqrt(rt(xb)+rt(p-yb)) << endl;
}
furu_tuww