QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#710186 | #9546. Recover Statistics | cyc_43346# | AC ✓ | 0ms | 3656kb | C++14 | 851b | 2024-11-04 19:00:08 | 2024-11-04 19:00:09 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
int read()
{
int res = 0;
int x = 1;
char ch = getchar();
while(ch > '9' || ch < '0')
{
if(ch == '-')
{
x = -1;
}
ch = getchar();
}
while(ch >= '0' && ch <= '9')
{
res = res * 10 + ch - '0';
ch = getchar();
}
return res * x;
}
void solve()
{
int a,b,c;
cin>>a>>b>>c;
cout<<100<<endl;
for(int i=1;i<=50;i++){
cout<<a<<" ";
}
for(int i=51;i<=95;i++){
cout<<b<<" ";
}
for(int i=96;i<=99;i++){
cout<<c<<" ";
}
cout<<c+1<<endl;
}
int main()
{
cin.tie(0) -> sync_with_stdio(false);
//freopen("in1.txt" , "r" , stdin);
//freopen("out1.txt" , "w" , stdout);
solve();
return 0;
}
这程序好像有点Bug,我给组数据试试?
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3636kb
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: 0
Accepted
time: 0ms
memory: 3596kb
input:
1 2 3
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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 4
result:
ok ok
Test #3:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
1 999999998 999999999
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 999999998 999999998 999999998 999999998 999999998 999999998 999999998 999999998 999999998 999999998 999999998 999999998 999999998 999999998 999999998 999999998 999999998 999999998 999999998 999999...
result:
ok ok
Test #4:
score: 0
Accepted
time: 0ms
memory: 3656kb
input:
999999997 999999998 999999999
output:
100 999999997 999999997 999999997 999999997 999999997 999999997 999999997 999999997 999999997 999999997 999999997 999999997 999999997 999999997 999999997 999999997 999999997 999999997 999999997 999999997 999999997 999999997 999999997 999999997 999999997 999999997 999999997 999999997 999999997 999999...
result:
ok ok
Test #5:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
893 114514 1919810
output:
100 893 893 893 893 893 893 893 893 893 893 893 893 893 893 893 893 893 893 893 893 893 893 893 893 893 893 893 893 893 893 893 893 893 893 893 893 893 893 893 893 893 893 893 893 893 893 893 893 893 893 114514 114514 114514 114514 114514 114514 114514 114514 114514 114514 114514 114514 114514 11451...
result:
ok ok
Extra Test:
score: 0
Extra Test Passed