QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#714548 | #9546. Recover Statistics | 2366503423 | WA | 1ms | 3840kb | C++14 | 292b | 2024-11-06 00:02:08 | 2024-11-06 00:02:14 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
int main()
{
long long int a,b,c;cin>>a>>b>>c;
for(int i=1;i<=100;i++)
{
if(i<=50) cout<<a<<' ';
else if(i<=95) cout<<b<<' ';
else if(i<=99) cout<<c<<' ';
else cout<<1e18<<' ';
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 1ms
memory: 3840kb
input:
50 95 99
output:
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 1e+18
result:
wrong answer Integer parameter [name=n] equals to 50, violates the range [100, 100000]