結果
問題 |
No.81 すべて足すだけの簡単なお仕事です。
|
ユーザー |
![]() |
提出日時 | 2022-08-18 18:57:16 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 432 bytes |
コンパイル時間 | 7,030 ms |
コンパイル使用メモリ | 346,984 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-06 13:10:16 |
合計ジャッジ時間 | 7,580 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 30 |
ソースコード
#include <bits/stdc++.h> #define rep(i,n) for(int i = 0; i < (n); i++) using namespace std; #include <boost/multiprecision/cpp_dec_float.hpp> namespace mp = boost::multiprecision; using ld = mp::cpp_dec_float_50; int main(){ cin.tie(0); ios::sync_with_stdio(0); int N; cin >> N; ld sum = 0; rep(i,N) { ld a; cin >> a; sum += a; } cout << fixed << setprecision(10) << sum << endl; }