QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#713299 | #9546. Recover Statistics | lixp# | WA | 1ms | 3668kb | C++20 | 528b | 2024-11-05 18:54:49 | 2024-11-05 18:54:50 |
Judging History
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]