QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#713834#9546. Recover StatisticsExile_Code#WA 0ms3516kbC++20917b2024-11-05 20:39:402024-11-05 20:39:42

Judging History

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

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

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";
    cout<<"\n";
}

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

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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]