QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#359384 | #5564. Lots of Land | crsfaa# | TL | 0ms | 3748kb | C++14 | 1.2kb | 2024-03-20 17:16:21 | 2024-03-20 17:16:22 |
Judging History
answer
#include<bits/stdc++.h>
#define Yukinoshita namespace
#define Yukino std
using Yukinoshita Yukino;
int read()
{
int s=0,w=1;
char ch=getchar();
while(ch<'0'||ch>'9') w=ch=='-'?-1:1,ch=getchar();
while(ch>='0'&&ch<='9') s=s*10+ch-'0',ch=getchar();
return s*w;
}
vector<pair<int,int>> qwq;
int n,m;
char mp[105][105];
void dfs(int x,int y,int c)
{
int i,j;
if(x==n+1)
{
for(i=1;i<=n;i++,puts(""))
for(j=1;j<=m;j++)
putchar(mp[i][j]);
exit(0);
}
int nx=y==m?x+1:x,ny=y==m?1:y+1;
if(mp[x][y]) dfs(nx,ny,c);
else
{
for(auto p:qwq)
if(x+p.first-1<=n&&y+p.second-1<=m)
{
for(i=x;i<x+p.first;i++)
for(j=y;j<y+p.second;j++)
if(mp[i][j])
goto bre;
for(i=x;i<x+p.first;i++)
for(j=y;j<y+p.second;j++)
mp[i][j]=c+'A';
dfs(nx,ny,c+1);
for(i=x;i<x+p.first;i++)
for(j=y;j<y+p.second;j++)
mp[i][j]=0;
bre:;
}
}
}
int main()
{
n=read(),m=read();
int c=read();
if(n*m%c)
{
cout<<"impossible";
return 0;
}
int x=n*m/c,i;
for(i=1;i<=x;i++)
if(x%i==0)
qwq.push_back({i,x/i});
random_shuffle(qwq.begin(),qwq.end());
dfs(1,1,0);
cout<<"impossible";
}
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3680kb
input:
4 4 4
output:
AAAA BBBB CCCC DDDD
result:
ok correct
Test #2:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
6 15 9
output:
AAAAAAAAAABBBBB CCCCCCCCCCBBBBB DDDDDDDDDDEEEEE FFFFFFFFFFEEEEE GGGGGGGGGGHHHHH IIIIIIIIIIHHHHH
result:
ok correct
Test #3:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
100 100 26
output:
impossible
result:
ok correct
Test #4:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
1 1 1
output:
A
result:
ok correct
Test #5:
score: 0
Accepted
time: 0ms
memory: 3680kb
input:
1 100 25
output:
AAAABBBBCCCCDDDDEEEEFFFFGGGGHHHHIIIIJJJJKKKKLLLLMMMMNNNNOOOOPPPPQQQQRRRRSSSSTTTTUUUUVVVVWWWWXXXXYYYY
result:
ok correct
Test #6:
score: 0
Accepted
time: 0ms
memory: 3656kb
input:
100 1 20
output:
A A A A A B B B B B C C C C C D D D D D E E E E E F F F F F G G G G G H H H H H I I I I I J J J J J K K K K K L L L L L M M M M M N N N N N O O O O O P P P P P Q Q Q Q Q R R R R R S S S S S T T T T T
result:
ok correct
Test #7:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
99 98 1
output:
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAA...
result:
ok correct
Test #8:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
100 100 25
output:
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB...
result:
ok correct
Test #9:
score: 0
Accepted
time: 0ms
memory: 3724kb
input:
100 91 26
output:
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBCCCCCCCDDDDDDDEEEEEEE AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBCCCCCCCDDDDDDDEEEEEEE AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBCCCCCCCDDDDDDDEEEEEEE AAAAAAAAAAAAAAAAAAAAAAAA...
result:
ok correct
Test #10:
score: 0
Accepted
time: 0ms
memory: 3668kb
input:
96 96 24
output:
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBCCCCCCCCDDDDDDDDEEEEEEEE AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBCCCCCCCCDDDDDDDDEEEEEEEE AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBCCCCCCCCDDDDDDDDEEEEEEEE AAAAAAAAA...
result:
ok correct
Test #11:
score: 0
Accepted
time: 0ms
memory: 3664kb
input:
12 60 16
output:
AAAAABBBBBCCCCCDDDDDEEEEEFFFFFGGGGGHHHHHIIIIIJJJJJKKKKKLLLLL AAAAABBBBBCCCCCDDDDDEEEEEFFFFFGGGGGHHHHHIIIIIJJJJJKKKKKLLLLL AAAAABBBBBCCCCCDDDDDEEEEEFFFFFGGGGGHHHHHIIIIIJJJJJKKKKKLLLLL AAAAABBBBBCCCCCDDDDDEEEEEFFFFFGGGGGHHHHHIIIIIJJJJJKKKKKLLLLL AAAAABBBBBCCCCCDDDDDEEEEEFFFFFGGGGGHHHHHIIIIIJJJJJKKKKKL...
result:
ok correct
Test #12:
score: 0
Accepted
time: 0ms
memory: 3668kb
input:
77 8 22
output:
AABBCCDD AABBCCDD AABBCCDD AABBCCDD AABBCCDD AABBCCDD AABBCCDD AABBCCDD AABBCCDD AABBCCDD AABBCCDD AABBCCDD AABBCCDD AABBCCDD EEFFGGHH EEFFGGHH EEFFGGHH EEFFGGHH EEFFGGHH EEFFGGHH EEFFGGHH EEFFGGHH EEFFGGHH EEFFGGHH EEFFGGHH EEFFGGHH EEFFGGHH EEFFGGHH IIJJKKLL IIJJKKLL IIJJKKLL IIJJKKLL IIJJKKLL IIJ...
result:
ok correct
Test #13:
score: 0
Accepted
time: 0ms
memory: 3584kb
input:
24 50 20
output:
AAAAAAAAAAAABBBBBBBBBBBBCCCCCCCCCCCCDDDDEEEEFFFFFF AAAAAAAAAAAABBBBBBBBBBBBCCCCCCCCCCCCDDDDEEEEFFFFFF AAAAAAAAAAAABBBBBBBBBBBBCCCCCCCCCCCCDDDDEEEEFFFFFF AAAAAAAAAAAABBBBBBBBBBBBCCCCCCCCCCCCDDDDEEEEFFFFFF AAAAAAAAAAAABBBBBBBBBBBBCCCCCCCCCCCCDDDDEEEEFFFFFF GGGGGGGGGGGGHHHHHHHHHHHHIIIIIIIIIIIIDDDDEEEEF...
result:
ok correct
Test #14:
score: 0
Accepted
time: 0ms
memory: 3604kb
input:
60 7 14
output:
AAAAABC AAAAABC AAAAABC AAAAABC AAAAABC AAAAABC DDDDDBC DDDDDBC DDDDDBC DDDDDBC DDDDDBC DDDDDBC EEEEEBC EEEEEBC EEEEEBC EEEEEBC EEEEEBC EEEEEBC FFFFFBC FFFFFBC FFFFFBC FFFFFBC FFFFFBC FFFFFBC GGGGGBC GGGGGBC GGGGGBC GGGGGBC GGGGGBC GGGGGBC HHHHHIJ HHHHHIJ HHHHHIJ HHHHHIJ HHHHHIJ HHHHHIJ KKKKKIJ KKKK...
result:
ok correct
Test #15:
score: 0
Accepted
time: 0ms
memory: 3748kb
input:
14 63 18
output:
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBCCCCCCC DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDBBBBBBBCCCCCCC EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEBBBBBBBCCCCCCC FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFBBBBBBBCCCCCCC GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG...
result:
ok correct
Test #16:
score: 0
Accepted
time: 0ms
memory: 3588kb
input:
10 56 20
output:
AAAABBBBCCCCDDDDEEEEFFFFGGGGHHHHIIIIJJJJKKKKLLLLMMMMNNNN AAAABBBBCCCCDDDDEEEEFFFFGGGGHHHHIIIIJJJJKKKKLLLLMMMMNNNN AAAABBBBCCCCDDDDEEEEFFFFGGGGHHHHIIIIJJJJKKKKLLLLMMMMNNNN AAAABBBBCCCCDDDDEEEEFFFFGGGGHHHHIIIIJJJJKKKKLLLLMMMMNNNN AAAABBBBCCCCDDDDEEEEFFFFGGGGHHHHIIIIJJJJKKKKLLLLMMMMNNNN AAAABBBBCCCCDDD...
result:
ok correct
Test #17:
score: 0
Accepted
time: 0ms
memory: 3724kb
input:
76 100 8
output:
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB...
result:
ok correct
Test #18:
score: 0
Accepted
time: 0ms
memory: 3728kb
input:
88 6 24
output:
ABCDEF ABCDEF ABCDEF ABCDEF ABCDEF ABCDEF ABCDEF ABCDEF ABCDEF ABCDEF ABCDEF ABCDEF ABCDEF ABCDEF ABCDEF ABCDEF ABCDEF ABCDEF ABCDEF ABCDEF ABCDEF ABCDEF GHIJKL GHIJKL GHIJKL GHIJKL GHIJKL GHIJKL GHIJKL GHIJKL GHIJKL GHIJKL GHIJKL GHIJKL GHIJKL GHIJKL GHIJKL GHIJKL GHIJKL GHIJKL GHIJKL GHIJKL GHIJKL...
result:
ok correct
Test #19:
score: 0
Accepted
time: 0ms
memory: 3688kb
input:
42 24 18
output:
AAAAAAABBBBBBBCCCCCCCCDD AAAAAAABBBBBBBCCCCCCCCDD AAAAAAABBBBBBBCCCCCCCCDD AAAAAAABBBBBBBCCCCCCCCDD AAAAAAABBBBBBBCCCCCCCCDD AAAAAAABBBBBBBCCCCCCCCDD AAAAAAABBBBBBBCCCCCCCCDD AAAAAAABBBBBBBEEEEEEEEDD FFFFFFFGGGGGGGEEEEEEEEDD FFFFFFFGGGGGGGEEEEEEEEDD FFFFFFFGGGGGGGEEEEEEEEDD FFFFFFFGGGGGGGEEEEEEEEDD ...
result:
ok correct
Test #20:
score: 0
Accepted
time: 0ms
memory: 3668kb
input:
8 87 6
output:
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBB AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBB CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCBBBBBBBBBBBBBBBBBBBBBBBBBBBBB CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC...
result:
ok correct
Test #21:
score: 0
Accepted
time: 0ms
memory: 3664kb
input:
62 18 1
output:
AAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAA...
result:
ok correct
Test #22:
score: 0
Accepted
time: 0ms
memory: 3684kb
input:
52 9 2
output:
AAAAAAAAA AAAAAAAAA AAAAAAAAA AAAAAAAAA AAAAAAAAA AAAAAAAAA AAAAAAAAA AAAAAAAAA AAAAAAAAA AAAAAAAAA AAAAAAAAA AAAAAAAAA AAAAAAAAA AAAAAAAAA AAAAAAAAA AAAAAAAAA AAAAAAAAA AAAAAAAAA AAAAAAAAA AAAAAAAAA AAAAAAAAA AAAAAAAAA AAAAAAAAA AAAAAAAAA AAAAAAAAA AAAAAAAAA BBBBBBBBB BBBBBBBBB BBBBBBBBB BBBBBBBBB ...
result:
ok correct
Test #23:
score: 0
Accepted
time: 0ms
memory: 3668kb
input:
57 62 3
output:
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBB...
result:
ok correct
Test #24:
score: 0
Accepted
time: 0ms
memory: 3604kb
input:
53 4 4
output:
ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD
result:
ok correct
Test #25:
score: 0
Accepted
time: 0ms
memory: 3604kb
input:
28 95 5
output:
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCCCC AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCCCC AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCCCC AAAAAAAAAAAA...
result:
ok correct
Test #26:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
12 76 6
output:
AAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCCCCDDDDDDDDDDDDDDDDDDD AAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCCCCDDDDDDDDDDDDDDDDDDD AAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCCCCDDDDDDDDDDDDDDDDDDD AAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCCCCDDDDDDDDDDDD...
result:
ok correct
Test #27:
score: 0
Accepted
time: 0ms
memory: 3748kb
input:
91 83 7
output:
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...
result:
ok correct
Test #28:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
78 16 8
output:
AABBCCDDEEFFGGHH AABBCCDDEEFFGGHH AABBCCDDEEFFGGHH AABBCCDDEEFFGGHH AABBCCDDEEFFGGHH AABBCCDDEEFFGGHH AABBCCDDEEFFGGHH AABBCCDDEEFFGGHH AABBCCDDEEFFGGHH AABBCCDDEEFFGGHH AABBCCDDEEFFGGHH AABBCCDDEEFFGGHH AABBCCDDEEFFGGHH AABBCCDDEEFFGGHH AABBCCDDEEFFGGHH AABBCCDDEEFFGGHH AABBCCDDEEFFGGHH AABBCCDDEEF...
result:
ok correct
Test #29:
score: 0
Accepted
time: 0ms
memory: 3664kb
input:
27 90 9
output:
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB AAAAAAAAAAAAAAAAAAAAAAAAAAA...
result:
ok correct
Test #30:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
30 23 10
output:
AAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAA BBBBBBBBBBBBBBBBBBBBBBB BBBBBBBBBBBBBBBBBBBBBBB BBBBBBBBBBBBBBBBBBBBBBB CCCCCCCCCCCCCCCCCCCCCCC CCCCCCCCCCCCCCCCCCCCCCC CCCCCCCCCCCCCCCCCCCCCCC DDDDDDDDDDDDDDDDDDDDDDD DDDDDDDDDDDDDDDDDDDDDDD DDDDDDDDDDDDDDDDDDDDDDD EEEEEEEEEEEE...
result:
ok correct
Test #31:
score: 0
Accepted
time: 0ms
memory: 3720kb
input:
6 14 11
output:
impossible
result:
ok correct
Test #32:
score: 0
Accepted
time: 0ms
memory: 3684kb
input:
85 99 24
output:
impossible
result:
ok correct
Test #33:
score: 0
Accepted
time: 0ms
memory: 3728kb
input:
64 74 18
output:
impossible
result:
ok correct
Test #34:
score: 0
Accepted
time: 0ms
memory: 3664kb
input:
98 78 16
output:
impossible
result:
ok correct
Test #35:
score: 0
Accepted
time: 0ms
memory: 3680kb
input:
11 33 24
output:
impossible
result:
ok correct
Test #36:
score: 0
Accepted
time: 0ms
memory: 3664kb
input:
47 5 8
output:
impossible
result:
ok correct
Test #37:
score: 0
Accepted
time: 0ms
memory: 3604kb
input:
75 6 23
output:
impossible
result:
ok correct
Test #38:
score: 0
Accepted
time: 0ms
memory: 3680kb
input:
15 69 11
output:
impossible
result:
ok correct
Test #39:
score: 0
Accepted
time: 0ms
memory: 3664kb
input:
7 74 4
output:
impossible
result:
ok correct
Test #40:
score: 0
Accepted
time: 0ms
memory: 3668kb
input:
58 30 11
output:
impossible
result:
ok correct
Test #41:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
48 94 6
output:
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB AAAAAAAAAAAAAAA...
result:
ok correct
Test #42:
score: 0
Accepted
time: 0ms
memory: 3684kb
input:
45 92 23
output:
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBCCCCCCCCCCDDDDDDDDDD AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBCCCCCCCCCCDDDDDDDDDD AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBCCCCCCCCCCDDDDDDDDDD AAAAAAAAAAAAAAAAAAAAA...
result:
ok correct
Test #43:
score: 0
Accepted
time: 0ms
memory: 3668kb
input:
96 51 17
output:
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBB AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBB AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBB AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBB AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBB AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...
result:
ok correct
Test #44:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
90 84 24
output:
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBCCCCCCCDDDDDDD AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBCCCCCCCDDDDDDD AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBCCCCCCCDDDDDDD AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBB...
result:
ok correct
Test #45:
score: -100
Time Limit Exceeded
input:
96 51 24