結果

問題 No.81 すべて足すだけの簡単なお仕事です。
ユーザー pessimist
提出日時 2025-06-18 16:08:26
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 351 bytes
コンパイル時間 1,318 ms
コンパイル使用メモリ 162,784 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2025-06-18 16:08:29
合計ジャッジ時間 2,587 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 21 WA * 9
権限があれば一括ダウンロードができます

ソースコード

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(10)<<sum;
}
int main(){
    ios::sync_with_stdio(0);
    cin.tie(0);
    int t=1; //cin>>t;
    for(;t--;) solve();
}
0