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