結果
| 問題 |
No.306 さいたま2008
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-11-27 23:14:48 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 421 bytes |
| コンパイル時間 | 405 ms |
| コンパイル使用メモリ | 54,632 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-14 00:33:36 |
| 合計ジャッジ時間 | 1,230 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 WA * 13 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main()
{
double ax, ay, bx, by;
double p;
cin >> ax >> ay;
cin >> bx >> by;
if (ax == bx && ay == by) {
cout << ay << endl;
return 0;
}
else if (ax == bx) {
cout << (ay + by) / 2 << endl;
return 0;
}
else if (ay == by) {
cout << ay << endl;
return 0;
}
else {
double min = -1;
cout << -1 << endl;
return 0;
}
return 0;
}