QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#717193 | #9546. Recover Statistics | A_J1e# | WA | 0ms | 3640kb | C++23 | 743b | 2024-11-06 17:12:31 | 2024-11-06 17:12:33 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
using i64 = long long;
using i32 = int;
bool mem1;
void solve() {
i32 a,b,c;cin>>a>>b>>c;
cout<<100<<'\n';
for(i32 i=1;i<=a;++i) cout<<a<<' ';
for(i32 i=a+1;i<=b;++i) cout<<b<<' ';
for(i32 i=b+1;i<=c;++i) cout<<c<<' ';
for(i32 i=c+1;i<=100;++i) cout<<101<<' ';
}
bool mem2;
int main(void) {
ios::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
#ifdef LOCAL
cerr << fixed << setprecision(2) << "Memory : " << abs(&mem1 - &mem2) / 1024. / 1024. << "MB\n";
#endif
int T=1; //cin >> T;
while (T -- ) solve();
#ifdef LOCAL
cerr << "Time : " << clock() * 1000 / CLOCKS_PER_SEC << "MS\n";
#endif
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3640kb
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: 3552kb
input:
1 2 3
output:
100 1 2 3 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 10...
result:
wrong answer wrong p50: 1 / 100