QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#726916 | #9546. Recover Statistics | ssx# | WA | 1ms | 3616kb | C++20 | 651b | 2024-11-09 10:18:57 | 2024-11-09 10:18:58 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
#define pll pair<ll, ll>
#define ll long long
const int mod = 1e9 + 7;
const int N = 2e5 + 50;
void solve()
{
int a,b,c;
cin>>a>>b>>c;
cout<<100<<endl;
for(int i=0;i<a;i++){
cout<<1<<' ';
}
for(int i=0;i<b-a;i++){
cout<<51<<' ';
}
for(int i=0;i<c-b;i++){
cout<<96<<' ';
}
for(int i=0;i<100-c;i++){
cout<<100<<' ';
}
}
int main()
{
ios::sync_with_stdio(false);
cin.tie(0);
ll T = 1;
//cin >> T;
while (T --)
{
solve();
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3616kb
input:
50 95 99
output:
100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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 100
result:
ok ok
Test #2:
score: -100
Wrong Answer
time: 0ms
memory: 3612kb
input:
1 2 3
output:
100 1 51 96 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 ...
result:
wrong answer wrong p50: 1 / 100