QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#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();
}
}
詳細信息
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