結果
| 問題 |
No.410 出会い
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-02-18 17:38:59 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 251 bytes |
| コンパイル時間 | 401 ms |
| コンパイル使用メモリ | 57,888 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-30 04:30:57 |
| 合計ジャッジ時間 | 1,166 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 5 WA * 14 |
ソースコード
#include <iostream>
#include <algorithm>
#include <string>
#include <cstdio>
using namespace std;
int main()
{
int p[4];
for (auto& x : p) cin >> x;
cout << (abs(p[0]) + abs(p[2]) + abs(p[1]) + abs(p[3])) / 2.0 << endl;
return 0;
}