結果

問題 No.81 すべて足すだけの簡単なお仕事です。
ユーザー muripoyotaro
提出日時 2018-08-13 19:28:30
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 687 bytes
コンパイル時間 830 ms
コンパイル使用メモリ 118,676 KB
最終ジャッジ日時 2025-01-06 12:19:40
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 21 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<algorithm>
#include<math.h>
#include<set>
#include<vector>
#include<map>
#include<functional>
#include<iomanip>
#include<queue>
#include<random>
#include<numeric>
#include<string>
#include<stack>
#include<cstring>
typedef long long ll;
typedef long double ld;
using namespace std;
ll dx[] = { 0,0,1,-1 };
ll dy[] = { 1,-1,0,0 };

ll gcd(ll a, ll b) {
	if (a<b) { return gcd(b, a); }
	else if (a%b) { return gcd(b, a%b); }
	else { return b; }
}
ll lcm(ll a, ll b) {
	return a / gcd(a, b)*b;
}
int main() {
	ll N;
	cin >> N;
	ld sum=0;
  	for(ll i=0; i<N; i++){
      ld a;
      cin>>a;
      sum+=a;
    }
	cout << fixed << setprecision(10) << sum << endl;
}
0