QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#716239 | #9546. Recover Statistics | blhxzjr# | WA | 0ms | 3660kb | C++23 | 369b | 2024-11-06 14:43:33 | 2024-11-06 14:43:34 |
Judging History
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]