QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#691867#5304. Money Gamethe_fool#WA 0ms3904kbC++20902b2024-10-31 13:17:032024-10-31 13:17:04

Judging History

你现在查看的是最新测评结果

  • [2024-10-31 13:17:04]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3904kb
  • [2024-10-31 13:17:03]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;

using LL = long long;
using ll = long long;
using LD = long double;

signed main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    int n;
    cin >> n;

    // vector<LD> a(n);
    // for (int i = 0; i < n; i++) {
    //     cin >> a[i];
    // }
    // for (int t = 1; t <= 100; t++) {
    //     for (int i = 0; i < n; i++) {
    //         a[i] /= 2;
    //         a[(i + 1) % n] += a[i];
    //     }
    //     for (int i = 0; i < n; i++) {
    //         cout << a[i] << " \n"[i == n - 1];
    //     }
    // }

    LD s = 0;
    for (int i = 1; i <= n; i++) {
        int x;
        cin >> x;
        s += x;
    }

    cout << fixed << setprecision(20);
    s /= (n + 1);
    cout << 2 * s << " ";
    for (int i = 1; i < n - 1; i++) {
        cout << s << " ";
    }
    cout << "\n";
}

詳細信息

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3904kb

input:

2
4 2

output:

4.00000000000000000000 

result:

wrong output format Unexpected end of file - double expected