QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#713837#9546. Recover StatisticsExile_Code#WA 0ms3632kbC++20900b2024-11-05 20:40:412024-11-05 20:40:41

Judging History

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

  • [2024-11-05 20:40:41]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3632kb
  • [2024-11-05 20:40:41]
  • 提交

answer

#include <bits/stdc++.h>

using namespace std;

#define int long long

#define cy cout<<"Yes\n";
#define cn cout<<"No\n";

using ll =long long;
using ld =long double;
using pii =pair<int,int>;

using vi =vector<int>;
using vvi =vector<vi>;
using vs =vector<string>;

std::mt19937_64 rng(std::chrono::steady_clock::now().time_since_epoch().count());

const ll inf=0x3f3f3f3f;

void solve()
{
    int a,b,c;
    cin>>a>>b>>c;
    vi v1(50,a);
    vi v2(45,b);
    vi v3(4,c);
    cout<<100<<"\n";
    for(auto i:v1)
    {
        cout<<i<<" ";
    }
    for(auto i:v2)
    {
        cout<<i<<" ";
    }
    for(auto i:v3)
    {
        cout<<i<<" ";
    }
    cout<<inf<<"\n";
}

signed main()
{
    ios::sync_with_stdio(false),cin.tie(nullptr),cout.tie(nullptr);
    int _=1;
    // std::cin>>_;
    while (_--)
    {
        solve();
    }
    
}

詳細信息

Test #1:

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

input:

50
95
99

output:

100
50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 99 99 99 99...

result:

wrong answer Integer element pans[100] equals to 1061109567, violates the range [1, 10^9]