結果

問題 No.81 すべて足すだけの簡単なお仕事です。
ユーザー itezpace
提出日時 2016-09-24 10:47:02
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 251 bytes
コンパイル時間 444 ms
コンパイル使用メモリ 61,556 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-17 20:31:26
合計ジャッジ時間 1,279 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 21 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <iomanip>
using namespace std;
int main(){
  int N;
  cin>>N;
  long double A=0,B=0;
  long double x=0;
  for(int i=0; i<N; ++i){
    cin>>A;
    B=x+A;
    x=B;
  }
  cout<<fixed<<setprecision(10)<<x<<endl;
  return 0;
}
0