結果

問題 No.81 すべて足すだけの簡単なお仕事です。
ユーザー snrnsidy
提出日時 2021-06-10 04:11:40
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 408 bytes
コンパイル時間 2,190 ms
コンパイル使用メモリ 193,512 KB
最終ジャッジ日時 2025-01-22 05:13:51
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

int main(void)
{
	cin.tie(0);
	ios::sync_with_stdio(false);
	
	__int128 sum = 0;
	int n;
	long double t;

	cin >> n;

	for (int i = 0; i < n; i++)
	{
		cin >> t;
		t *= 10000000000;
		__int128 temp = t;
		sum += t;
	}

	long double res = sum;
	//cout << res << '\n';
	res/=10000000000;

	cout << fixed;
	cout.precision(10);

	cout << res << '\n';

	return 0;
}
0