結果

問題 No.81 すべて足すだけの簡単なお仕事です。
ユーザー Pachicobue
提出日時 2017-07-22 03:41:33
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 5,000 ms
コード長 358 bytes
コンパイル時間 6,714 ms
コンパイル使用メモリ 249,328 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-22 16:40:17
合計ジャッジ時間 7,110 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <boost/multiprecision/cpp_dec_float.hpp>
using namespace std;
using ld = boost::multiprecision::cpp_dec_float_100;
int main()
{
    int N;
    cin >> N;
    ld sum = 0;
    for (int i = 0; i < N; i++) {
        ld a;
        cin >> a;
        sum += a;
    }
    cout << fixed << setprecision(10) << sum << endl;
    return 0;
}
0