QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#712179 | #9546. Recover Statistics | hnust_100team# | WA | 0ms | 3620kb | C++17 | 529b | 2024-11-05 14:49:40 | 2024-11-05 14:49:40 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
#define int long long
void solve(){
int n=100,a,b,c;
cin>>a>>b>>c;
vector<int>ans(101);
int cnt=100;
for(int i=n;i>=1;i--){
if(cnt>c){
ans[i]=c+1;
}else if(cnt>b){
ans[i]=b+1;
}else if(cnt>a){
ans[i]=a+1;
}else{
ans[i]=a;
}
cnt--;
}
cout<<n<<"\n";
for(int i=1;i<=n;i++){
cout<<ans[i]<<" ";
}return;
}
signed main(){
ios::sync_with_stdio(0);
cin.tie(0);cout.tie(0);
int t=1;
//cin>>t;
while(t--){
solve();
}
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3592kb
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 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 96 96 96 96...
result:
ok ok
Test #2:
score: -100
Wrong Answer
time: 0ms
memory: 3620kb
input:
1 2 3
output:
100 1 2 3 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
result:
wrong answer wrong p50: 1 / 100