結果
| 問題 |
No.81 すべて足すだけの簡単なお仕事です。
|
| コンテスト | |
| ユーザー |
Konton7
|
| 提出日時 | 2020-01-18 17:40:12 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 441 bytes |
| コンパイル時間 | 2,148 ms |
| コンパイル使用メモリ | 192,932 KB |
| 最終ジャッジ日時 | 2025-01-08 20:06:39 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 WA * 25 |
ソースコード
#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;
cin >> n;
rep(i, n){
cin >> s;
sum += s * f;
}
ans = sum / f;
printf( "%.10f\n", ans );
return 0;
}
Konton7