結果
| 問題 |
No.81 すべて足すだけの簡単なお仕事です。
|
| コンテスト | |
| ユーザー |
Konton7
|
| 提出日時 | 2020-01-18 17:41:53 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 455 bytes |
| コンパイル時間 | 2,168 ms |
| コンパイル使用メモリ | 191,596 KB |
| 最終ジャッジ日時 | 2025-01-08 20:07:06 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 WA * 23 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
#define DEBUG
int main()
{
int n;
const ll f = 10e10;
double a, ans;
ll s, sum;
sum = 0;
ans = 0;
cin >> n;
rep(i, n){
cin >> a;
sum += a * f;
}
ans = sum / f;
printf( "%.10f\n", ans );
return 0;
}
Konton7