結果
| 問題 |
No.81 すべて足すだけの簡単なお仕事です。
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-06-10 04:09:40 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 383 bytes |
| コンパイル時間 | 2,178 ms |
| コンパイル使用メモリ | 192,156 KB |
| 最終ジャッジ日時 | 2025-01-22 05:13:43 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 WA * 16 |
ソースコード
#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 / 10000000000.0);
cout << fixed;
cout.precision(10);
cout << res << '\n';
return 0;
}