QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#712179#9546. Recover Statisticshnust_100team#WA 0ms3620kbC++17529b2024-11-05 14:49:402024-11-05 14:49:40

Judging History

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

  • [2024-11-05 14:49:40]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3620kb
  • [2024-11-05 14:49:40]
  • 提交

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