結果

問題 No.410 出会い
ユーザー ilplrr
提出日時 2018-02-18 17:38:00
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 251 bytes
コンパイル時間 397 ms
コンパイル使用メモリ 57,268 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-30 04:30:54
合計ジャッジ時間 1,148 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 5 WA * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

#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[1]) + abs(p[2]) + abs(p[3])) / 2.0 << endl;

    return 0;
}
0