QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#713299#9546. Recover Statisticslixp#WA 1ms3668kbC++20528b2024-11-05 18:54:492024-11-05 18:54:50

Judging History

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

  • [2024-11-05 18:54:50]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3668kb
  • [2024-11-05 18:54:49]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
const int N=1e5+9;

void solve(){
    int a,b,c;
    cin>>a>>b>>c;
    cout<<100<<"\n";
    for(int i=0;i<50;i++){
        cout<<a<<' ';
    }
    for(int i=0;i<45;i++){
        cout<<b<<' ';
    }
    for(int i=0;i<4;i++){
        cout<<c<<' ';
    }
    cout<<1000000000<<"\n";
}

signed main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    int T = 1;
    cin>>T;
    while (T--) {
        solve();
    }
    return 0;
}


Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 1ms
memory: 3668kb

input:

50
95
99

output:

100
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 95 95 95 95 95 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 1819242352 ...

result:

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