結果

問題 No.394 ハーフパイプ(1)
ユーザー mayoko_mayoko_
提出日時 2016-07-15 22:30:25
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 966 bytes
コンパイル時間 1,094 ms
コンパイル使用メモリ 103,796 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-08-05 06:33:19
合計ジャッジ時間 1,733 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 1 ms
4,384 KB
testcase_04 AC 2 ms
4,380 KB
testcase_05 AC 1 ms
4,380 KB
testcase_06 AC 2 ms
4,380 KB
testcase_07 AC 2 ms
4,380 KB
testcase_08 AC 1 ms
4,380 KB
testcase_09 AC 2 ms
4,380 KB
testcase_10 AC 2 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
//#include<cctype>
#include<climits>
#include<iostream>
#include<string>
#include<vector>
#include<map>
//#include<list>
#include<queue>
#include<deque>
#include<algorithm>
//#include<numeric>
#include<utility>
//#include<memory>
#include<functional>
#include<cassert>
#include<set>
#include<stack>
#include<random>

const int dx[] = {1, 0, -1, 0};
const int dy[] = {0, -1, 0, 1};
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef pair<int, int> pii;

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    vector<int> S(6);
    for (int i = 0; i < 6; i++)
        cin >> S[i];
    sort(S.begin(), S.end());
    int sum = 0;
    for (int i = 1; i < 5; i++)
        sum += 100*S[i];
    sum /= 4;
    int tmp = sum%100;
    cout << sum/100 << "." << (!tmp ? "00" : to_string(tmp)) << endl;
    return 0;
}
0