結果

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

ソースコード

diff #

#include <boost/multiprecision/cpp_dec_float.hpp>
#include <iomanip>
#include <iostream>
#include <string>
using namespace std;

int main() {
	int N;
	cin >> N;
	boost::multiprecision::cpp_dec_float_50 ans;
	for (int i = 0; i < N; ++i) {
		string A;
		cin >> A;
		boost::multiprecision::cpp_dec_float_50 tmp(A);
		ans += tmp;
	}
	cout << fixed << setprecision(10) << ans;
}
0