結果

問題 No.81 すべて足すだけの簡単なお仕事です。
ユーザー pessimist
提出日時 2025-06-18 16:06:58
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 349 bytes
コンパイル時間 2,095 ms
コンパイル使用メモリ 191,656 KB
実行使用メモリ 11,044 KB
最終ジャッジ日時 2025-06-18 16:07:07
合計ジャッジ時間 8,693 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 7 TLE * 1 -- * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

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

void solve(){
    int N; cin>>N;
    long double sum=0;
    for(int i=0;i<N;++i){
        long double x; cin>>x;
        sum+=x;
    }
    cout<<fixed<<setprecision(12)<<sum;
}
int main(){
    ios::sync_with_stdio(0);
    cin.tie(0);
    int t=1; cin>>t;
    for(;t--;) solve();
}
0