結果

問題 No.81 すべて足すだけの簡単なお仕事です。
ユーザー ninoinui
提出日時 2020-09-26 06:09:33
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 12 ms / 5,000 ms
コード長 646 bytes
コンパイル時間 8,557 ms
コンパイル使用メモリ 448,616 KB
最終ジャッジ日時 2025-01-14 21:55:55
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

#include <boost/multiprecision/cpp_int.hpp>
#include <boost/multiprecision/cpp_dec_float.hpp>
using namespace boost::multiprecision;

using bint = cpp_int;
// using bdec = cpp_dec_float_100;
using bdec = number<cpp_dec_float<10000>>;

template <typename T, typename U> void cmin(T &a, U b) {
  if (a > b) a = b;
}
template <typename T, typename U> void cmax(T &a, U b) {
  if (a < b) a = b;
}

signed main() {
  cin.tie(nullptr);
  ios_base::sync_with_stdio(false);

  int N;
  cin >> N;
  bdec ans = 0;
  bdec in;
  while (cin >> in) ans += in;
  cout << fixed << setprecision(10) << ans << "\n";
}
0