QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#716239#9546. Recover Statisticsblhxzjr#WA 0ms3660kbC++23369b2024-11-06 14:43:332024-11-06 14:43:34

Judging History

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

  • [2024-11-06 14:43:34]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3660kb
  • [2024-11-06 14:43:33]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;

const int N=2e5+10;

int n,m,k,q;

signed main(){
	ios::sync_with_stdio(0),cin.tie(0);
	int a,b,c;
	cin>>a>>b>>c;
	n=2*a;
	cout<<n<<endl;
	for(int i=1;i<=a;i++) cout<<a<<' ';
	for(int i=1;i<=n*0.45;i++) cout<<b<<' ';
	for(int i=1;i<=n*0.04;i++) cout<<c<<' ';
	for(int i=1;i<=n*0.01;i++) cout<<c+1<<' ';
}  

详细

Test #1:

score: 100
Accepted
time: 0ms
memory: 3660kb

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 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...

result:

ok ok

Test #2:

score: -100
Wrong Answer
time: 0ms
memory: 3644kb

input:

1
2
3

output:

2
1 

result:

wrong answer Integer parameter [name=n] equals to 2, violates the range [100, 100000]