QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#261239 | #7799. Divisibility Trick | FHQY_WWW# | AC ✓ | 0ms | 3692kb | C++20 | 930b | 2023-11-22 19:22:00 | 2023-11-22 19:22:01 |
Judging History
answer
#include<bits/stdc++.h>
#define int long long
#define double long double
#define lowbit(x) x&(-x)
#define fastios ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);
#define endl '\n'
#define el puts("")
#define udm unordered_map<int,int>
#define set_0(a) memset(&a,0,sizeof(a))
#define set_unint(a) memset(&a,-1,sizeof(a))
using namespace std;
//define_var
const int M=2e5+9,inf=1e18;
//define_var
//function_begin
int read()
{
int x=0,f=1;
char c=getchar();
while(c<'0'||c>'9'){if(c=='-') f=-1;c=getchar();}
while(c>='0'&&c<='9') x=x*10+c-'0',c=getchar();
return x*f;
}
void write(int x)
{
if(x<0) putchar('-'),x=-x;
if(x>9) write(x/10);
putchar(x%10+'0');
}
//function_end
//solve_begin
void solve()
{
int d;
cin>>d;
for(int i=1;i<=d;i++)
cout<<d;
cout<<endl;
}
//solve_end
//main_begin
signed main()
{
fastios
int T=1;
// cin>>T;
while(T--)
solve();
}
//main_end
这程序好像有点Bug,我给组数据试试?
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3692kb
input:
3
output:
333
result:
ok
Test #2:
score: 0
Accepted
time: 0ms
memory: 3676kb
input:
13
output:
13131313131313131313131313
result:
ok
Test #3:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
1
output:
1
result:
ok
Test #4:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
2
output:
22
result:
ok
Test #5:
score: 0
Accepted
time: 0ms
memory: 3540kb
input:
4
output:
4444
result:
ok
Test #6:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
15
output:
151515151515151515151515151515
result:
ok
Test #7:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
24
output:
242424242424242424242424242424242424242424242424
result:
ok
Test #8:
score: 0
Accepted
time: 0ms
memory: 3544kb
input:
42
output:
424242424242424242424242424242424242424242424242424242424242424242424242424242424242
result:
ok
Test #9:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
123
output:
123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123...
result:
ok
Test #10:
score: 0
Accepted
time: 0ms
memory: 3576kb
input:
239
output:
239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239...
result:
ok
Test #11:
score: 0
Accepted
time: 0ms
memory: 3572kb
input:
543
output:
543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543...
result:
ok
Test #12:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
666
output:
666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666...
result:
ok
Test #13:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
777
output:
777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777...
result:
ok
Test #14:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
888
output:
888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888...
result:
ok
Test #15:
score: 0
Accepted
time: 0ms
memory: 3584kb
input:
1000
output:
100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000...
result:
ok
Test #16:
score: 0
Accepted
time: 0ms
memory: 3664kb
input:
5
output:
55555
result:
ok
Test #17:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
6
output:
666666
result:
ok
Test #18:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
7
output:
7777777
result:
ok
Test #19:
score: 0
Accepted
time: 0ms
memory: 3544kb
input:
8
output:
88888888
result:
ok
Test #20:
score: 0
Accepted
time: 0ms
memory: 3680kb
input:
9
output:
999999999
result:
ok
Test #21:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
10
output:
10101010101010101010
result:
ok
Test #22:
score: 0
Accepted
time: 0ms
memory: 3572kb
input:
11
output:
1111111111111111111111
result:
ok
Test #23:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
12
output:
121212121212121212121212
result:
ok
Test #24:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
16
output:
16161616161616161616161616161616
result:
ok
Test #25:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
18
output:
181818181818181818181818181818181818
result:
ok
Test #26:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
20
output:
2020202020202020202020202020202020202020
result:
ok
Test #27:
score: 0
Accepted
time: 0ms
memory: 3540kb
input:
22
output:
22222222222222222222222222222222222222222222
result:
ok
Test #28:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
999
output:
999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999...
result:
ok
Test #29:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
953
output:
953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953...
result:
ok
Test #30:
score: 0
Accepted
time: 0ms
memory: 3512kb
input:
971
output:
971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971...
result:
ok
Test #31:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
977
output:
977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977...
result:
ok
Test #32:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
983
output:
983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983...
result:
ok
Test #33:
score: 0
Accepted
time: 0ms
memory: 3636kb
input:
811
output:
811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811...
result:
ok
Test #34:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
821
output:
821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821...
result:
ok
Test #35:
score: 0
Accepted
time: 0ms
memory: 3684kb
input:
823
output:
823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823...
result:
ok
Test #36:
score: 0
Accepted
time: 0ms
memory: 3540kb
input:
857
output:
857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857...
result:
ok
Test #37:
score: 0
Accepted
time: 0ms
memory: 3544kb
input:
863
output:
863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863...
result:
ok
Test #38:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
887
output:
887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887...
result:
ok
Test #39:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
937
output:
937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937...
result:
ok
Test #40:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
941
output:
941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941...
result:
ok
Test #41:
score: 0
Accepted
time: 0ms
memory: 3544kb
input:
900
output:
900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900...
result:
ok
Test #42:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
800
output:
800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800...
result:
ok
Test #43:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
700
output:
700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700...
result:
ok
Test #44:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
100
output:
100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100
result:
ok
Test #45:
score: 0
Accepted
time: 0ms
memory: 3540kb
input:
985
output:
985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985...
result:
ok
Test #46:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
950
output:
950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950...
result:
ok
Test #47:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
998
output:
998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998...
result:
ok
Test #48:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
988
output:
988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988...
result:
ok
Extra Test:
score: 0
Extra Test Passed