QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#740879 | #2662. Bomberman | reverSilly | 50 | 89ms | 97384kb | C++23 | 3.6kb | 2024-11-13 12:01:19 | 2024-11-13 12:01:20 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
constexpr int mxn{1005},mxp{mxn*mxn*6};
forward_list<int>graph[mxp];
int dis[mxp],pre[mxp],n,s,t;
char mp[mxn][mxn];
void bfs(int s)
{
fill_n(dis,n*n*6,1e9);
fill_n(pre,n*n*6,-1);
list<int>Q;
dis[s]=0;
Q.push_back(s);
while(!Q.empty())
{
int u=Q.front();Q.pop_front();
for(int v:graph[u])
{
if(dis[v]==1e9)
{
if(v%(n*n)==u%(n*n))
{
dis[v]=dis[u];
Q.push_front(v);
}
else
{
dis[v]=dis[u]+1;
Q.push_back(v);
}
pre[v]=u;
}
}
}
}
int point(int x,int y,int layer)
{
return n*n*layer+x*n+y;
}
bool canpass(char ch)
{
return ch=='P'||ch=='K'||ch=='.';
}
void addedge(int u,int v)
{
graph[u].push_front(v);
}
void addedge2(int u,int v)
{
// cerr<<u<<' '<<v<<'\n';
addedge(u,v);
addedge(v,u);
}
forward_list<int>getpath(int t)
{
forward_list<int>res;
for(;t!=-1;t=pre[t])
res.push_front(t);
return res;
}
void print(forward_list<int>const&p)
{
for(auto it=p.begin(),jt=next(it);jt!=p.end();++it,++jt)
{
if(*it<3*n*n&&*jt>=3*n*n&&*it%(n*n)==*jt%(n*n))
{
int p=*it%(n*n);
cout<<p/n+1<<' '<<p%n+1<<'\n';
return;
}
}
for(int i=0;i<n;++i)
{
for(int j=0;j<n;++j)
{
if(canpass(mp[i][j]))
{
cout<<i+1<<' '<<j+1<<'\n';
return;
}
}
}
}
int main()
{
cin.tie(nullptr);
ios::sync_with_stdio(false);
cin>>n;
for(int i=0;i<n;++i)
for(int j=0;j<n;++j)
cin>>mp[i][j];
for(int i=0;i<n;++i)
{
for(int j=0;j<n;++j)
{
if(i&&canpass(mp[i][j])&&canpass(mp[i-1][j]))
for(int l:{0,5})
addedge2(point(i,j,l),point(i-1,j,l));
if(j&&canpass(mp[i][j])&&canpass(mp[i][j-1]))
for(int l:{0,5})
addedge2(point(i,j,l),point(i,j-1,l));
auto conn=[i,j](int lu,int lv){
addedge(point(i,j,lu),point(i,j,lv));
};
auto conn2=[i,j](int di,int dj){
int x=i+di,y=j+dj;
if(0<=x&&x<n)
{
if(0<=y&&y<n)
{
addedge(point(i,j,3),point(x,y,5));
addedge(point(i,j,4),point(x,y,5));
}
}
};
if(mp[i][j]!='X')
{
// conn(0,1);conn(0,2);
conn(1,4);conn(2,3);
conn(3,5);conn(4,5);
conn2(0,1);conn2(0,-1);
conn2(1,0);conn2(-1,0);
if(mp[i][j]=='P')
s=point(i,j,0);
if(mp[i][j]=='K')
t=point(i,j,5);
}
}
}
for(int i=0;i<n;++i)
{
for(int j=0;j<n;++j)
{
if(mp[i][j]!='X')
{
if(i&&mp[i-1][j]!='X')
{
for(int l:{1,3})
addedge2(point(i,j,l),point(i-1,j,l));
addedge(point(i,j,0),point(i-1,j,2));
addedge(point(i-1,j,0),point(i,j,2));
}
if(j&&mp[i][j-1]!='X')
{
for(int l:{2,4})
addedge2(point(i,j,l),point(i,j-1,l));
addedge(point(i,j,0),point(i,j-1,1));
addedge(point(i,j-1,0),point(i,j,1));
}
}
}
}
bfs(s);
if(dis[t]==1e9)
{
cout<<"NIE\n";
}
else
{
cout<<dis[t]<<'\n';
auto p=getpath(t);
print(p);
int last=s;
for(int i:p)
{
i%=n*n;
if(i!=last)
{
if(i==last+1)
cout<<'P';
if(i==last-1)
cout<<'L';
if(i==last+n)
cout<<'D';
if(i==last-n)
cout<<'G';
last=i;
}
}
}
// for(int i:getpath(t))
// cerr<<i<<' ';
// for(int u,v;cin>>u>>v;)
// {
// if(v==-1)
// {
// }
// cerr<<count(graph[u].begin(),graph[u].end(),v)<<'\n';
// }
return 0;
}
// 11
// K..........
// XXXXXXXXXX.
// #..........
// .XXXXXXXXXX
// #.........#
// XXXXXXXXXX.
// ...........
// .XXXXXXXXXX
// ...........
// XXXXXXXXXX.
// P..........
// ans:
// 70
// 5 1
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 0
Memory Limit Exceeded
Test #1:
score: 10
Accepted
time: 3ms
memory: 55824kb
input:
5 P..X. X.... ..X.. ....X .X..K
output:
8 4 2 PDDDPPDP
result:
ok
Test #2:
score: 10
Accepted
time: 7ms
memory: 54592kb
input:
5 ....P .XXXX ..... XXXX. K....
output:
16 1 4 LLLLDDPPPPDDLLLL
result:
ok
Test #3:
score: 10
Accepted
time: 8ms
memory: 53332kb
input:
2 PX .K
output:
2 2 1 DP
result:
ok
Test #4:
score: 10
Accepted
time: 12ms
memory: 54472kb
input:
2 P. K.
output:
1 2 1 D
result:
ok
Test #5:
score: 10
Accepted
time: 8ms
memory: 54168kb
input:
2 P. .K
output:
2 2 1 DP
result:
ok
Test #6:
score: 10
Accepted
time: 6ms
memory: 54476kb
input:
2 PX XK
output:
NIE
result:
ok NIE
Test #7:
score: 10
Accepted
time: 6ms
memory: 54140kb
input:
3 P.X ... X.K
output:
4 2 3 DPPD
result:
ok
Test #8:
score: 10
Accepted
time: 8ms
memory: 54588kb
input:
10 XXXX...X.. X.KX.X.... X.....XX.. X.XXX..X.. X.X...X.X. X....X..X. XXXX..X... ......X.XX .XXXXXP... ........X.
output:
21 7 8 PGGPPGGGLGGLLGLLDDLLG
result:
ok
Test #9:
score: 10
Accepted
time: 4ms
memory: 54788kb
input:
10 ......X... .PX...X... .XX.....X. ....X...X. .XXXX..X.. X.....XX.X .......... .X.....XX. .......XK. ..........
output:
18 1 6 GPPPPDDDDDDDDDPPPG
result:
ok
Test #10:
score: 10
Accepted
time: 4ms
memory: 54680kb
input:
9 ....X.... ...X..X.. ..X..X..X .X..X..X. X..X..X.. ..X..X... .XP.X..X. ..XX..XK. .....X...
output:
40 6 4 PGPGPGPGPGGLLDLDLDLDLDLDDDPPPPGPGPGPPDDL
result:
ok
Test #11:
score: 0
Memory Limit Exceeded
input:
1000 .......X...X.....X..........X.X...XX......XXX...XX.............X...X.................X.X......X....XX..XX...........X...XX..XXXXX.XXXX....X.XXXX.....X...X...X......X.......X..XX........X....XX...X.....X.XX.X.XX.X...X.........X.X...X...............X.....XX..X...X.......X.XXXX....X.XX.X......X......
output:
1097 366 669 DLLLLLLLLLLLLLLDDDDDDLDDDDDDDDDLDDDLLLLDDDDLLLLLLDLLDDDDDDLDDDLLDDDDDLDDDDDDDDDDDDDDDDDDLDDLDLDDDDLLLLLLDDLLLDDLDDDDDLDLDDLDDDLDDDLDDDLLDLDLDDDDLDDDLLDDDLLDDLDLDDLLDDLLLLDLDLDDDDDDLDLDDLLDLLDLLDDLLDLDDDLDDDDDDLLLDDDDDLLLDDDDDDDDDDDDDDLDDLLLDLDDDDDDDLDDDLDDDDLDDDDDDDDDDDDLLLDDDDDDDDDDDDD...
result:
Subtask #2:
score: 20
Accepted
Test #28:
score: 20
Accepted
time: 13ms
memory: 55576kb
input:
10 .......... .########. .#......#. .#X##X#.#. .#X#P.#X#. .#X#..#X#. .#X####X#. .#XXXXX.#. .#X####X#. ..X..K....
output:
16 4 7 PPGPPPDDDDDDLLLL
result:
ok
Test #29:
score: 20
Accepted
time: 3ms
memory: 53052kb
input:
2 PK X#
output:
1 1 2 P
result:
ok
Test #30:
score: 20
Accepted
time: 10ms
memory: 55596kb
input:
2 #K P#
output:
2 2 2 PG
result:
ok
Test #31:
score: 20
Accepted
time: 7ms
memory: 55308kb
input:
50 .................................................. .#..............................................X. ..############################################..X. #.............................................##X. .############################################...X. .............................................
output:
285 37 28 DDDDDDDDLLDDPPDDDDDDDDDDDDDDDDLLGGGGGGGGGGGLLDDDDDDDDDDDLLLLLLLLLLGGGGGGGGLLDDDLLLLLLLLLLLDDDDDLLGGGGGGGGGGGGGPPPPPPPGGGGGGGGGGGGGGGLLLLLLLLLLDDDLLLLLLLLLLLLLLLLLDDPPPPPPPPPPPPPPPPPDDLLLLLLLLLLLLLLLLLDDPPPPPPPPPPPPPPPPPDDLLLLLLLLLLLLLLLLLDDPPPPPPPPPPPPPPPPPDDDDDDDDDDDDDDDLLLLLLLLLLLLL
result:
ok
Test #32:
score: 20
Accepted
time: 8ms
memory: 57144kb
input:
50 K......#####X##################################### ###..#.....#X##################################### ......####.#X##################################### ...###.###.#X##################################### ......#.....X##################################### #####.#..###X#########.................###...
output:
64 11 27 DDDDPPGGGGGGGGGGGGGGGGGGLLLLLLLLLLGGLLLLLGLGLLGGPPGGGLLLLGLLLLLL
result:
ok
Test #33:
score: 20
Accepted
time: 10ms
memory: 55668kb
input:
10 P########X ########## ########## ########## ########## ########## ########## ########## ########## X########K
output:
18 2 10 DPPPPPPPPPDDDDDDDD
result:
ok
Test #34:
score: 20
Accepted
time: 8ms
memory: 55760kb
input:
11 K.......... XXXXXXXXXX. #.......... .XXXXXXXXXX #.........# XXXXXXXXXX. ........... .XXXXXXXXXX ........... XXXXXXXXXX. P..........
output:
70 5 1 PPPPPPPPPPGGLLLLLLLLLLGGPPPPPPPPPPGGLLLLLLLLLLGGPPPPPPPPPPGGLLLLLLLLLL
result:
ok
Test #35:
score: 20
Accepted
time: 8ms
memory: 55928kb
input:
5 ##..# .PX#. .XXX. #.XK# .#.#.
output:
8 5 1 LDDDPPPG
result:
ok
Test #36:
score: 20
Accepted
time: 8ms
memory: 55932kb
input:
7 ....... ....... ###X### #PX.XK# ###X### ....... .......
output:
NIE
result:
ok NIE
Test #37:
score: 20
Accepted
time: 4ms
memory: 56604kb
input:
45 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX# X.#...X..........XX.......XX#X#....XX.......X #.#.X.#...X...###XX......#XX....#..XX..#..##. ..#.#.#..........XX.......XX.......X#........ ..#.#.#...#.#X###XX.........#....#XX#........ X.#.#.#..........XX..............#.XX.......X X.#.#.#.XX.######X#.....
output:
232 6 4 LDDLDDDDDDDDDDDDDDDDDDDDDDDDDDDDLDDDDLLLLLLLGLLGGGPGGGGGPGGGGPPGGGGGGGLLGGGLLGGLGGPPPPPPGGLLLLLLGGPGGGLLDLLDDLDDDDDDDDDLDDDDDDDDDLDDDDDDDDDLLLDLLLLLLLGLLGGGGGPGGGGPGGGGGGGGGGGGGGGGGGGGGLLGGLLLLLLLDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
result:
ok
Test #38:
score: 20
Accepted
time: 10ms
memory: 55640kb
input:
45 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX X...X...XXX..XXX.XX.X.X#.#XX.X#.XX....#.X.XXX XX.X......#.#X.#X..X...X..XX.........X...X.XX X......#..X....XX...X#..X.XX..#.X..........XX XXX..#....##...X...X.XXXXXXX.X..XX.XX...#..XX X..XX...XX.XX..X.XX#..X...XX.#.X...XX....#.XX XXX.#XXXXXX...#X.XX#....
output:
NIE
result:
ok NIE
Test #39:
score: 20
Accepted
time: 9ms
memory: 56052kb
input:
45 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX X...#........##.#.....#...XX.......XX...#...X X.X.........#.................X...........#.X X....XX...#...........#X....#.#.X........X..X X.#..X.X...........##.X.#...X..#.X...##.....X X.#..........#..#.........................#.X X...............#...#...
output:
NIE
result:
ok NIE
Test #40:
score: 20
Accepted
time: 11ms
memory: 55708kb
input:
45 .##X#X.#.XXXXX.X.#.XXXX#.X#.#.XX...X#..X#X#.. X.......XX.......XX............#..#..#..#...X X...#........#...XX.....#....#.........#..#.X X.............................#..#.......#..X X..#..K.....#..........#....#.....#..#.....#X X.........................XX.#..#..XX..#....X X.#........#............
output:
215 40 42 LGGLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLGGGGGGGPPPPPDPPPPPPPPPPGGPGGPPPPPGPPDPPPPPPGGGGLLLLLLLLGLLLLLGLLLLGLLGLGLLLLGLLDLLLLLLLGGGGGPGPPPPPPPPGPPPPPPPPPPGPPPPPPPDPPPGGPPPPGGPGGGGPGGLLLLGLLDDLLLGLLLLLLLLLLLLLLLLLLDLLLLL
result:
ok
Test #41:
score: 20
Accepted
time: 11ms
memory: 56944kb
input:
45 XXX#.#X#X..####.###.X.#X####X.#X.#X##...X#### X.......XX.......XX...#.#.XX..............#.# ........XX.......XX.#.....#X................. #.......XX.......XX.#...#........#........... #..##...XX.....##...#.X.#........#.XX.......# .....K................#............XX.....#.. ....#...........#...#...
output:
74 35 43 LGGGGGGGLLGGLLLLLLLLLLLLLLLLLGGGGLLGGGGGGGGGGGGGGLGGGGGGGLGLLGLLLLLLLLLLLL
result:
ok
Test #42:
score: 20
Accepted
time: 4ms
memory: 54732kb
input:
45 X.#XXX#X#.X.#..X#XXXX.XX#..X#.X###X.XXXX##..X X.#..P......................................X X.#.......###.#...............##.##.......#.X X.#.....................................#.#.X #..........#..#.#...........#X#..##.....#...X X...........................................X X...........####........
output:
NIE
result:
ok NIE
Test #43:
score: 20
Accepted
time: 7ms
memory: 55876kb
input:
45 #XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX# #.#...#.XX.#...#.XX..........#...#.XX...#...X X.#.#.#.XX.#.#.#.XX######....#.#.#.XX.#.#.#.X ..#.#.#.XX.#.#.#.XX..........#.#.#.XX.#.#.#.# X.#.#.#.XX.#.#.#.XX.######XX.#.#.X.XXK#.#.#.# #.#.#.#....#.#.#.XX.......XX.#.#.#.XX.#.#.#.X ..#.#.#....#.#.#.XX##...
output:
334 35 3 GGGGGLLGGGLGGGGGGGGGGGGGGGGGGGGGGGGPPPGGGPPPPPPPGGGGGGPPDDDDDDPDDPDDDDDDDDDDLLDDDDDDLDDDLLLDDPPPPPPDDLLLLLLDDPPPPDDDPPPPPPPGGGGGGGGGPGGGLGGGGGGGPGGPGGGGGGGGGPPGGLLLLLLGGPPPPPPPPPDDDDPPDDDLLDDPPPPPPDDLLLLLLDDPPDDDPPPPDDLLLLLLDDPPPPPPDDDDDDDDDDDLDDDPPPPGGGGGPPPPPPGGLLLLLLGGGGGGGPPPPPPGGLLLLLL...
result:
ok
Test #44:
score: 20
Accepted
time: 8ms
memory: 54396kb
input:
2 K# #P
output:
2 2 1 LG
result:
ok
Test #45:
score: 20
Accepted
time: 4ms
memory: 54360kb
input:
2 XP K#
output:
2 2 2 DL
result:
ok
Test #46:
score: 20
Accepted
time: 4ms
memory: 55744kb
input:
2 K# XP
output:
2 1 2 GL
result:
ok
Test #47:
score: 20
Accepted
time: 7ms
memory: 55456kb
input:
2 K# PX
output:
1 1 1 G
result:
ok
Subtask #3:
score: 30
Accepted
Dependency #2:
100%
Accepted
Test #48:
score: 30
Accepted
time: 60ms
memory: 88288kb
input:
200 ....#.X.........#..X.XX.....#.....##.......#X.#.#.##..X...###.#....##.##.######XX.#...#.....#......#..X..#...##.#X........#.........XX#..X..X............#..X#.X.#.#X......##.#.X.....X................# X.#........#....#...#.#...#..#..#....#.......X#X..X.#...#.....##.........#....#...X....X..........
output:
116 64 95 DDDDDLLDDDDDDDPDPPPDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDPPDDPPPPPPPPPPPDDPPDPPDDPDDPPPPPPPPDDDDPDPPDPPPDPDDDDPPPPPP
result:
ok
Test #49:
score: 30
Accepted
time: 68ms
memory: 85144kb
input:
200 #.......#XX...##.X..#.#....X.#..#....#XX#...###.#...#.....X##...#.##..........#....#X..#...#..#..X#....#....X.X###X..###X..#X.....#.#.##..#......#....#......#........##...X......#.X.X...X#..#X....#... .#..#....##..............XX..#....##...#......##....#.........#.X....#.#...........X....###.#X#...
output:
128 115 60 GGLGGLGGGGLGGPGGGLGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGLGGGGLGGGPGGPGGPGGGGLGGGGGGLGGGGGGGPGPGPPD
result:
ok
Test #50:
score: 30
Accepted
time: 59ms
memory: 87868kb
input:
200 .X..........##.XX##.#####....#...#.#X#XX#..##..#.#.##.X..##.#..#......#.#.##...#..XX.#.##...###.....#....#...#.####..###..X##..#.X....##.X..#..##.#.#...#.X.#.X.X.#....##.X###..#X.##X#.X....XX.X####... .#.....#.###........##.X#.....#..X....X.#.##.#X##....#...#..##..#...#.#.X...X.#..X###...#...#X....
output:
259 129 128 LLLDDLLLLLLDDDDLLLLGLLLDDDDDLLDLLLLLLLGLLDLLLLDLLLLLLDLLDLDDDDPDDDDLDDDPPDDDDLDDDDLDDDDDDLLDDLDLLLLLLLLLGLLDLDLLDDDDDLLLDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLDDDLLDLLDDDLDDLDDDLLLLLDDLLLLDLDDDD
result:
ok
Test #51:
score: 30
Accepted
time: 38ms
memory: 89304kb
input:
200 ...#.......#..###.#.####.###X....#.#...###..##...#...#.#.#...#...#......###.##.#.###.##.#.......#.#....#..#.##..#.###...#.#..#....#......#.####.X#......###.#..##.###...#.##.X#.#.###...##.#...#......#X .X#....#..##.####..#.##..#..#...####.#####.#.#.##....#..#..X..#.#...#....##.....#....##.#.#####...
output:
184 94 195 PGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLDDDLDLLDDDDDPPG
result:
ok
Test #52:
score: 30
Accepted
time: 89ms
memory: 97384kb
input:
200 ..................#.................................................................................................................................................#................................... ........................................................................................#.........
output:
95 120 141 PGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
result:
ok
Test #53:
score: 30
Accepted
time: 52ms
memory: 78280kb
input:
200 #.XXX#.X..XXX..XXX#X#.X#X###.#.X#XXX#.X.X#.X..#..X.XX###..##X#XXX#.X#.##X.##XX#X..X#X#XX.###..XXXX.X##XXX.XXXX..X#.##...###X##..XX#X####.##X.##X#X.XX##XXX..XX#XXX#XX#.XXXXX..##..X######XXXX.X.#..##XX# ...#..X#..X....#X#..X#XXXX#.#.#.#...X#.X....X...XXX....X.X....X.....#.....XXXXX..X....X..#.#......
output:
406 139 157 LGGGGGPPGGGPGGGGGLGLGGPGGGPGGGGGGGLLGGGGGGGLLLLDLLLGGGGGGLLGLLDDLLLGGLLLDLLLLLGGGGLGGGGGGGGGLGGGGLGGGGLLLLLLLGGGGGGGGLLLLDLLDLLLLLLDLLLDDLLDDLLLLGGLLLLGGGGLLDLLLGGGGGLLGLLLLLGLLLLLLGGGGGGGLGGGLGGPGGLLLLLLGGGGGGLLGGLGLLGLLGLLLLLLLLLGGLLGGLLGGGGGGLGGGLGGGGGGGGGPGPPPDPPPGGLGGGLLGGLLLLLGGLLG...
result:
ok
Test #54:
score: 30
Accepted
time: 43ms
memory: 85220kb
input:
200 #X..##XX#.XXXXX##.X..X.X.##XX#X#.#X.XX##.##XXXX.###....XX.X##X.X#.#X.XX..#X#X#XXXX..#X###X#XX#.#X#.X.XX.#X.#X##X.X###X...XX#X###X#X#XXXX...#.#X#X###X..XXXX.XXX.X#X#XX#..#.XX#.XX.X..XX..X.XXX..X#.###X# X.................#..#..XX...........#.....X..X....#...X.X...#.#.......#X.XXX.....##.X.X.X........
output:
1961 181 106 PGGGPPPGGPPPGPPDPPPPPDPPPPGGPPPPDPPGPPGPPPPPPPPPGPPPPPPPPGGPPPPPPPPPGPPPPPPDDPDPPPPPPPPPPPPPPPPPGGGGGPGGPPPPPPPPPDDDDDDDPPPDDDDPPPDPPPPPDPPPPPPPDDPPPPPPPPPDPPPPPGPPPDPPDPPPPPPGGGPPPPPPPPGPPPGGPGPPPGPPPPGPPPPPPPPPGGGGGPPPPGPPGPPPPPPPGGGGGPGGGLLLGLLLLGLLLGGGGGLLGGLGLLLLLLGGGGGLLLLLGLLGGLL...
result:
ok
Test #55:
score: 30
Accepted
time: 50ms
memory: 82900kb
input:
189 .XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX. ...#.#..XX.#..##.X.##..#..XX...#X....#.....X...X....XXX..#X.X.....XX......#X....XX#....##..#.....#.#.#X.#....
output:
1333 68 39 GGGGGLGGGGGGGPGGGGPPPGPGGGGGGPGGGGGGGGGGGGGGGGGGGLLGGGGGGGGPGGGGGGGGGPPGGGGGGGPPGGLGLLGGGGGGGGGLGGGGLGGGGLGGGGGGGGPGGGGPPGGGGGGPPGGGPGGGGGPPGGGPGGPGPPGPGPGGGGGGGGGGGGGGPGPGGGPPPGGGPPDPPDPDDDDDDDPPDDDDDPPDDDDDPDDDDDDDDDDDDDDDPDDDPDDDDDDDDLDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD...
result:
ok
Test #56:
score: 30
Accepted
time: 46ms
memory: 84728kb
input:
195 XXXXXXXXXXXX..XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX..XXXXXXXXXXXXXXXXXXXXXXXX..XXXXXXXXXXX..XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX..XXXXXXXXXXXX X......#...........#.....XX.....#...#XXX#....##X#.......#.....#.XX.....#....................#..X.#.....
output:
3203 60 44 PPGPPPGGGGLLLLLLLLDDLLLLDDDLLLDDDPDDPPPPPPPPPDPPPPPPPPPPGGGGGGGGGGGPGGGPGGLLGLGGGLLGLLGGGLLLGLLLLLGLLDLLLLLLLLLLLLLLLLLDDDDDDDDDDDDDDDDDDDDDPDDDDDDDPDDDDLDDDDDPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPDPPPPPPPPPPPPPPPPPGGGGPGGGGGLGGGGPGGGGGGGGGGGGGGGLGLGGGGGGGGGGGLLLGGGGGLGGGLLLDLLLLLLLLDLLLLLLLLLLL...
result:
ok
Test #57:
score: 30
Accepted
time: 38ms
memory: 83332kb
input:
189 XX#..#X#XX.X#X.#.#.###..#.X.X...#.##XXXXX#XXX.#X.XX.X...#.X#XX.#..X.X##.#X##.X####XXX...#.#..##X#XXXX#.XX###.#X..##X#..###X..XX..X...##X...X..XX#X.##XX.X.#X#..#.X#X.X.#..#XX#X#.#X.X##....XX #...........#..#....XX..#.#..#.X......##XXX..#...#............XX...X.....#.....##.#XX..X..#....#........XX...
output:
385 187 164 DLLLLLLLLLLLLLLGGGGGGGGGGGGGGGGLLLLLGLLLLLLGGGPPPPPPPPPPGGGGGGGGGGGGGGGGGGGGGLLGGGGGGGGGLGGGGGPGGLGGGGGLGGGGGGGGGLLGGGGPPGGGGGGGGLLLLLLLLLLGGGGGGGGGGGGGGGGGLLLLGGGGLLLLLLLLLLLLLLGLLGGGGGGGGGGGGGLLLLLLLLLLLGGGGGGGLLLLLLLLLLLGGGGGGGGGGGLLLLLLGGGGGGGGGGGLLLLLDLLLLLLLLLLLLLLLLLLLLLLLLLGLLLLL...
result:
ok
Test #58:
score: 30
Accepted
time: 49ms
memory: 86676kb
input:
189 .XX##X##.#X#.#XXX.#.X#..X.#X..###.XX#X###XX#..X#..#.X...X.X#.##..#XX#..##X.#.#X####X.XX####XX.#...X...XX.X#.X#.##X...X#####X##..X..#X##X.X..XXX#..XX#XX#X#...#.X.#X###.XXXX..X#.##...XX#.#X#. ##.....#..#.....#..#XX#.....#..#.....#..#XX#..#.....#..#.....#XX#.....#..#.....#..#XX#.....#..#.....#..#XX...
output:
362 184 179 LDLDLDLDLDLDLLDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL...
result:
ok
Test #59:
score: 30
Accepted
time: 51ms
memory: 84200kb
input:
195 #XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX. ............XX...........XX...........XX...........XX...........XX...........XX...........XX...........
output:
3398 41 165 LLDDDDDDDDDDDDDPPPPPPDDDDDDDDDDDDDDDDDDDDDDDDDDLLLLLLDDDDDDDDDDDDDPPPPDDDDDDDPPDDDDDDLDDDLDDDDDDDDDDLLLDDDDDDDDDDPPPDDDDDDDDDDDDDDDDLDDDPDDDDDDDDDDLLLDDDDDDDDDDDDDDDDDDDDDDDDDDPPPDDDDDDDDDDDDDLLLLDDDLLDDDDDDDDDDDDDDDDDDDLLLGLLLLLLLLLGGGGGGGGPPGGGGGGGGPPPGGGGGGGGGGGGGGGGLGGLLLGGGGGGGGGGGG...
result:
ok
Test #60:
score: 30
Accepted
time: 68ms
memory: 86776kb
input:
189 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX X#..#.....#..#.....#..#.....#..#.....#..#.....#..#.....#..#...XX.............................................
output:
497 38 18 PPPPPGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPDDDDDDDDPDDPDDPPPDDDDDDDDDDDDDDDDDPPDDDDDDDP...
result:
ok
Test #61:
score: 30
Accepted
time: 68ms
memory: 87264kb
input:
189 .##X#.##.X..XX#X#...X.X#.XX#.XXXX#XX.XXXX#..##.XX.XX#....X##.X#.XX#.XXX#XX..XX.....##.####X##X.XXXX#..#..X###X##X#...X.#..X#..X.#...XX.#X#.X#..#XX##XXX#.#.#X#.##X.#.X..#XX#XX.X#X..XXXXXX.XX X.#.#...#.......#...XX.#.#...#...#.#...#.XX.#.#...#...#.#.#...XX...................XX.......#...#.......XX...
output:
1664 177 169 LGGGGGGGGGGLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLGGGGGGGGGGGGGGPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPDDDDPPPPPPPPPPPPPPPPPPGGPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPGGGGPPGP...
result:
ok
Test #62:
score: 30
Accepted
time: 52ms
memory: 83036kb
input:
189 XXXXXXXX#XXXXXXXXX#X..X#X#XXXXX#XXX#XXXXXXXXXXXXXXXX#X#XXXXXXX#XXXXXX#X#X#XXXXXXX#XXXX#XXX#XXXXX#X#XXXXXXXXXX#XXXXXXXXXXX#XXXXXXXXXX#X#XXXXXXXXXXXXXXXXXXXXXX#X#XXXXXXXXXX#XXX#XXXXXXX#XXXXXX X...#...#.#...#.#.#....X.#...#.X.#.....#......................#X.X.....X.#...#...#.XX...................XX...
output:
2181 19 69 DDDDDDLLLDDLLDDDDDDDDDDDDLDDPDDDDPDDDDDDDDDDDDDDDDDDDDDDLDDDDDDLLLDDLDDLLDDPPDDDDPPPPPPPDDLDDDPDDDDDDDDDDDDDDDDDDPPDDDDDDDDDDDDDDDDDDDDDDDDPPPDDDDLLLLDDPDDLLDDDDDDLDDDDLLDDDLLDDDDPPPPDDLLLDDPDDLDDDDPDDDDPDDDDDDDDLLLLLLDDDDLLLLDDDLLLLLLLLLLLLGGLLLGGLLLGGGGLLLGLLLDDDDDDLLDDDLLDLLLLGLLGLLDLL...
result:
ok
Test #63:
score: 30
Accepted
time: 49ms
memory: 80400kb
input:
189 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX #...#...#...#...X.#.X#.#.....#.#.#.......X#...#...#.......X.#.XX...................XX...................XX...
output:
2297 9 14 DDDPPPDDPPDDLLDDDDDDLLLLLLDDDPPDDDDDPPDDPPDPPDDDDPPDDPPPPPGGGGPGGPPPGGPPPGGGGPGGGGGLLGGLGGGGGGPGGLLGGGGPPGGPPGGLLLLGGGLLGGGGLLGGGLLLGGLLDLLLLLLGGGLLDLLGLLLLGGLLDLLLLDDLLDDDDDDPPDDLDDLDDLDDDDDDLLDLLDLLLLDDLLDDDDLLDDLLDDDDDDPPPPDDLLLLDDDDPDDDDDDDDDDPDDPPPPPPPPPPDDDDDDDDDDDDPPPPDPPPPPPPPPPPPP...
result:
ok
Test #64:
score: 30
Accepted
time: 62ms
memory: 82700kb
input:
189 #X.XXX..X#.#.XX..###XX##.X####X.######X..X.#X#X.#XX#X.X.#.#..X#X...XX.X#X#.##X.#.##X##.X..X#XX#.#XX..##........X...X#.XX#..##.X####.X#X#X#.X#.#.X.X.X.#.#XX.X#..X##X..#...XXXX...#X..XX#..#.# X...#...#...#...#...XX...................XX.#...#...#...#...#.XX.#...#...#...#...#.XX.#...#...#...#...#.XX...
output:
579 107 137 LLGLLLLGGGLGGGGGGGGGGGGGGGGGGLLDDDDDDDDDDDDDDDDDDLLGGGGGGGGGGGGGGGGGGLLDDDDDDDDDDDDDDDDDDLLGGGGGGGGGGGGGGGGGGLLDDDDDDDDDDDDDDDDDDLLGGGGGGGGGGGGGGGGGGLLGGGGGGGGGGGGGGGGGGGGLLGLLLLLLLLLLGGGGGGGGGGGGGGGGGGGGGLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLGGGGGGGGGGGGGGGGGGGGGPPGPGGPPPPPPPPPGG...
result:
ok
Test #65:
score: 30
Accepted
time: 44ms
memory: 79956kb
input:
189 X..X#XX#XX###.XX##X.X.##...X#.XX.#X#.###.#X.X##.#..##X..####..#...X..#XXX#.##.X#X#...X#.#.X##.X##..X.#...##.#.#...XXX.#XX##..X.##.##X##.#.XX.#X###..#.X.#..##....#.###X.X.X#X#XX####X.#.X..X. X...#...#...#...#........#...#...#...#...XX...#...#...#...#...XX...................XX...................XX...
output:
10029 173 23 DDDDDDDDDDDPPGGGGGGGGGGGGGGGGGGPPDDDDDDDDDDDDDDDDDDPPGGGGGGGGGGGGGGGGGGPPDDDDDDDDDDDDDDDDDDPPGGGGGGGGGGGGGGGGGGPPDDDDDDDDDDDDDDDDDDPPGGGGGGGGGGGGGGGGGGPPPPPPPGPPDPPDDDDDDDDDDDDDDDDDDPPGGGGGGGGGGGGGGGGGGPPDDDDDDDDDDDDDDDDDDPPGGGGGGGGGGGGGGGGGGPPDDDDDDDDDDDDDDDDDDPPGGGGGGGGGGGGGGGGGGPPDDD...
result:
ok
Test #66:
score: 30
Accepted
time: 48ms
memory: 77900kb
input:
189 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX X...#...#...#...#...XX...#...#...#...#...XX.#...#...#...#...#.XX...................XX.#...#...#...#...#.XX...
output:
8707 23 173 DPPPPPPPDDLLLLLLLLLLLLLLLLLLDDLDLLDLLLLLLLLLLLLLLLLLLDDPPPPPPPPPPPPPPPPPPDDLLLLLLLLLLLLLLLLLLLLLGGLLLLLLLLLLLLLLLLLLGGPPPPPPPPPPPPPPPPPPGGLLLLLLLLLLLLLLLLLLGGLLLDDLLLLLLLLLLLLLLLLLLDDLLLGGGGGGGGLLDDDDDDDDDDDDDDDDDDLLGGGGGGGGGGGGGGGGGGLLDDDDDDDDDDDDDDDDDDLLGGGGGGGGGGGGGGGGGGLLDDDDDDDDDDDD...
result:
ok
Test #67:
score: 30
Accepted
time: 43ms
memory: 81192kb
input:
187 #.##X##...#X.#..##XXXX#X#X..##X#XX###XX##.X.#X#...#XX##.X#X#XXX..X.X.#X..XX...##.#.##XX#..X.##.X#..#X#.#XXX#XX#XX#.X.##XX#X##X#X.X.X#XX#XX#.X.#XX.#.XX.XX....##X.X#..#X#.#X.X..XX#.###X##XX X...............XX...............XX...............XX...............XX.#...#...#...#.XX...#...#...#...XX...#....
output:
8196 6 179 LGGPPPPPPPPPPPPPPGGLLLLLLLLLLLLLLGGPPPPPPPPPPPPPPGGLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLDDPPPPPPPPPPPPPPDDLLLLLLLLLLLLLLDDLDDLLLLGGGGGGGGGGGGGGLLDDDDDDDDDDDDDDLLGGGGGGGGGGGGGGLLDDDDDDDDDDDDDDLLGGGGGGGGGGGGGGLLDDDDDDDDDDDDDDLLGGGGGLLLDDDDDLLDLLLGLGGGGGGGGGGGGGGLLDDDDDDDDDDDDDDLLGGGGGGGGGGGGGGLLD...
result:
ok
Test #68:
score: 30
Accepted
time: 52ms
memory: 87528kb
input:
200 P####################################################################################################################################################################################################### ###############################################################################################...
output:
398 2 200 DPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD...
result:
ok
Test #69:
score: 30
Accepted
time: 47ms
memory: 81320kb
input:
190 #XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX. ..#...#...#...#...XX....................................XX.#...X...#...#...XX.................XX.#...#......
output:
7112 170 141 DDDDPPDDDPPDDDDDDDDDDDDDDDDPPDDDPPDDDDDDDDDDDDDDDDDDDLLLLLLLLDDPPPPPPPPPPPPPPPPDDLLLLLLLLLLLLLLLLDDPPPPPPPPPPPPPPPPDDLLLLLLLLLLLLLLLLDDPPPPPPPPPPPPPPPPDDLLLLLLLLLLLLLLLLDDPPPPPPPPPPPPPPPPDDLLLLLLLLLLDDDLLLLLLDDPPPPPPPPPPPPPPPPDDLLLLLLLLLLLLLLLLDDPPPPPPPPPPPPPPPPDDLLLLLLLLLLLLLLLLDDPPPPP...
result:
ok
Test #70:
score: 30
Accepted
time: 83ms
memory: 86432kb
input:
198 XX##X.XX.##.X#.##.XXXX#XXXX#X.X.XXX.###X.##X...XX.#X#X#.#X..X...X.#XX#X#..X...XXXX.XX.#..XX..XX#.#XX##XXXX#XX##X###.###X.X#X#.X.XX#X#.#.#.XXX#.XXX.#X#X....X#..X#.#XX.XXXXX.#XXXX.##.X.#X.#XX..#XXX#.# X...............................XX...............................XX.................................
output:
1229 117 20 LDLLLLDLLLLDLLLLDLLLLDLLLLDLLLGGLGGLGGLGGLLLLLLLLLGGGGGGGLLGGGLLDDDLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLDLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLDDLDDDDDDLLLLLDDDDDDLLLLLLLLLLLDDDPPPPPDDDDPPPPPPDDDDPDDPPPPPPPPDDPPPPPPPPPPPPGPPDPPDPPPPPPDPPPPPDD...
result:
ok
Test #71:
score: 30
Accepted
time: 45ms
memory: 82560kb
input:
190 ####XX.#.#.X###XX...X#...#..X###XXXX.X#X###XX.XX##X.##X.X.#X##X####.#X#..#X##XX.XX.#X#XXX#.###.#XXX#.#XX......#.##X#X#..XX.X##.#X.XXXXX#X.X..X.X#..####X#X##.#.#X.#XX..X#XX.#.#.#.X.X..XXXXX.. ..................XX.#.X...#.#.#.#...XX.X...#.....#.....XX...#.....#.#.....XX.#...#...#...#...XX............
output:
374 178 155 LLLDDLLLDLLLDLDLLLLGGLLGLGLGLLLLLGGGLLLLLLGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGLLLLLGLLGLLLGLGGGGGGGLGGGGGGGGGGLLLLLGLLLGGGLLLGGGGGGGGGGGGGGGGLGGGLGGGGGLGGLGGGGLLLLLLLLLLGLLGLLLLLLLLGGLGGLLLGGLGGGGLLLLLLLLLGLGGGGLLGGLLLLLLLLLLGLGGGGGGLGGGGLLLLLLLLLLLLLLLGLGGGGLGGGGGGGGGGGGGPGGPGGLGGGGGLLLLGLLLG...
result:
ok
Test #72:
score: 30
Accepted
time: 47ms
memory: 86900kb
input:
195 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX X.###..X.....#...#...#......#..#.#...#XX.X...#...#...#...#...#...#...#...#...XX.#...#...#...#...#......
output:
3496 176 160 DDPDDPPPPPDPPPPPPPPPPPPPPPGGPPPDDDDDDDDDDDDDDPPGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGPPDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDPPGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGPPDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDPPGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGPPDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDPPGGGGGGGGGGGG...
result:
ok
Test #73:
score: 30
Accepted
time: 54ms
memory: 76348kb
input:
189 #XXXX..XXX..#X#X#XXXX..#X...X.....##....X..X##X..X.###XX#X#...XX###.#...###.XX##XX#XX#X##.X#X#.###X#..#..##X##XXX##.XX#XX.XX#.##XX.X.###...#####X#.#X.....#X#.X..XX..#..X..X#X.##.###.X.X..X. X.#.....XX.......XX.......XX...#..#XX.#.....XX................XX....#..XX.#.....XX...#.#.....................
output:
381 5 5 PPPPPPPDDDPPPPPDDPDDDDDPPPPPPPPPPPPDPDDDDPPPPPPPPPPPPDPPPPPDDDPPPPPPGGGPPPDPDDLDDPPDDDDDDPDDPPPPPPDPPPPPPDDDDDDDDPPPDDDDDDPPPPDDDDDDDDDPDDDDPPPPPPPPDDDDDDLLDDDDDDPPDDPPPDPPDDDPPPPPPPPPPDDDDDPDPPDPPDPPPPPPPDDDDDPDPPDPPDDDPPPPDDDDPDDPPPPPDPDPDPPPDDDDDPPPPDDDDPPPPPDDDDDDDDDDDDDPPPPPDDDPDPPPPPPD...
result:
ok
Test #74:
score: 30
Accepted
time: 75ms
memory: 86676kb
input:
198 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX ..#...#...#...#...#...#...#...#...X...#...#...#...#...#...X...#...#...#...#...#...#...#...#...#.....
output:
2682 139 8 PGGGGGGGGGGGGGGGGPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGPGGPGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGPPDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD...
result:
ok
Test #75:
score: 30
Accepted
time: 62ms
memory: 86424kb
input:
200 ##..X.#......#...X.#.#.#.#.X.#XXXX#.....X...#....X.#...#......#.#....X#.#.X..#XX#....#..X##..###.#..#X..#..........X#...X#....#...#.##...#X.##.#...#..#..#..X###.#.#.X.....X...X..XX...X.......#X#.##... ..#...X#..X.....#X.X##..##.#.##X#X.#.X.#..X....#.X...#X.....#.....#.X.#...#......X...##.X#...#X...
output:
18 65 96 LGGGGGGGGGGLLLLLLL
result:
ok
Subtask #4:
score: 0
Skipped
Dependency #1:
0%