QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#811667 | #9546. Recover Statistics | srxxxx | AC ✓ | 1ms | 3644kb | C++17 | 4.3kb | 2024-12-12 22:43:45 | 2024-12-12 22:43:51 |
Judging History
answer
/* ┌───────────────────┐
│ 0 error 0 warming │
└───────────────────┘
┌────────┐ ┌────────┐
│ Python │ · │ Years │
│ │ · · │ │
│ Java │ · Hello · │ Months │
│ │ · · │ │
│ C++ │ · World! · │ Weeks │
│ │ · · │ │
│ Line │ · │ Day │
│ │ │ │
│ Line │ │ Day │
│ │ │ │
│ So │ │ No │
│ │ │ │
│ Easy │ │ Bug │
└────────┘ └────────┘
*/
/*
*
* ┏┓ ┏┓+ +
* ┏┛ ┻━━━┛ ┻━┓ + + ┏┓ ┏┓+ +
* ┃ ┃ ┏┛┻━━━━━━┛ ┻━━┓
* ┃ ━ ┃ ++ + + + ┃ ┃++ + + +
* ████━████ ┃+ ┃ ━ ┃
* ┃ ┃ + ┃ > < ┃
* ┃ ┻ ┃ ┃ ┃
* ┃ ┃ + + ┃... ⌒ ... ┃
* ┗━┓ ┏━┛ ┃ ┃
* ┃ ┃ ┗━┓ ┏━━━┛
* ┃ ┃ + + + + ┃ ┃ + + + +
* ┃ ┃ ┃ ┃
* ┃ ┃ + 神兽保佑 ┃ ┃+ 神兽保佑
* ┃ ┃ 代码无bug ┃ ┃ cf不被hack
* ┃ ┃ + ┃ ┃ ++ +
* ┃ ┗━━━┓ +,, ┃ ┗━━━┓
* ┃ ┣┓ +++ ┃ ┣┓ ++
* ┃ ┏┛ ┃ ┏┛ ++++
* ┗┓┓ ┏━━━┳┓ ┏┛ + + + + ┗┓ ┏━━━┳┓ ┏┛
* ┃┫┫ ┃┫┫ ┃┫┫ ┃┫┫ +++
* ┗┻┛ ┗┻┛+ + + + ┗┻┛ ┗┻┛
*
*/
#include<bits/stdc++.h>
#define INF 0x3f3f3f3f
#define fore(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
#define foree(i,a,b) for(int (i)=(a);(i)<=(b);(i)++)
#define ford(i,a,b) for(int (i)=(a);(i)>(b);(i)--)
#define forde(i,a,b) for(int (i)=(a);(i)>=(b);(i)--)
#define fi first
#define se second
#define pb push_back
using namespace std;
typedef long long ll;
ll gcd(ll a, ll b)
{
return b ? gcd(b, a % b) : a;
}
ll lcm(ll a,ll b){
return a*b/gcd(a,b);
}
ll qpow(ll a, ll k, ll p)
{
ll res = 1 % p;
while (k)
{
if (k & 1) res = (ll)res * a % p;
a = (ll)a * a % p;
k >>= 1;
}
return res;
}
ll _;
ll n,m,k;
string s;
// ll a[0x3f3f3f];
ll l,r;
ll ans=0;
bool flag;
void solve()
{
ans=0;
ll a,b,c;
cin>>a>>b>>c;
cout<<"100\n";
for(ll i=0;i<50;i++){
cout<<a<<' ';
}
for(ll i=0;i<45;i++){
cout<<b<<' ';
}
for(ll i=0;i<4;i++){
cout<<c<<' ';
}
cout<<c+1;
}
int main()
{
ios_base::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
_=1;
// cin>>_;
while(_--)
{
solve();
// cout<<''; //这里记得手动添加换行的转义字符
}
return 0;
}
这程序好像有点Bug,我给组数据试试?
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3644kb
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: 1ms
memory: 3644kb
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: 1ms
memory: 3572kb
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: 3628kb
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: 3584kb
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