QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#639732 | #4084. 카드 뒤집기 게임 | Matutino | 50 | 19ms | 6212kb | C++17 | 667b | 2024-10-13 21:58:30 | 2024-10-13 21:58:31 |
Judging History
answer
#include<bits/stdc++.h>
#define reg register
int fa[4010];
int find(reg int x){return fa[x]==x?x:fa[x]=find(fa[x]);}
inline void merge(reg int x,reg int y){x=find(x),y=find(y); fa[x]=y;}
bool reversal(int N, int M, std::vector<std::string> P){
for (reg int x=0;x<M;x++) for (reg int y=0;y<M;y++){
reg int n=N/M+(N%M<x),m=N/M+(N%M<y);
for (reg int i=0;i<n+m<<1;i++) fa[i]=i;
for (reg int i=0;i<n;i++) for (reg int j=0;j<m;j++){
reg int px=x+i*M,py=y+j*M;
if (P[px][py]=='X') merge(i,j+n),merge(i+n+m,j+n+n+m);
else merge(i+n+m,j+n),merge(i,j+n+n+m);
}
for (reg int i=0;i<n+m;i++) if (find(i)==find(i+n+m)) return 0;
}
return 1;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 0
Wrong Answer
Test #1:
score: 11
Accepted
time: 0ms
memory: 3552kb
input:
10 1 OOOOOOOOOX XOXXOOOOOO XOOXOOOXOO OOOOOOOOOO OOOXOOOOOO OOXOOXXOOO OOOOXOOOOO XOOOOOOOXO OOOXXOOOXO OOOOOOOOOO
output:
0
result:
ok single line: '0'
Test #2:
score: 11
Accepted
time: 0ms
memory: 3616kb
input:
10 1 OOOOOOOOXX OOOOOOOOXX XXXXXXXXOO XXXXXXXXOO OOOOOOOOXX OOOOOOOOXX OOOOOOOOXX OOOOOOOOXX OOOOOOOOXX OOOOOOOOXX
output:
1
result:
ok single line: '1'
Test #3:
score: 11
Accepted
time: 0ms
memory: 3616kb
input:
10 1 OOOOOOOOXX OOOOOOOOXX XXXXXXXOOO XXXXXXXXOO OOOOOOOOXX OOOOOOOOXX OOOOOOOOXX OOOOOOOOXX OOOOOOOOXX OOOOOOOOXX
output:
0
result:
ok single line: '0'
Test #4:
score: 11
Accepted
time: 0ms
memory: 3608kb
input:
10 1 OOXOXOOOOX XOOOOOXOOO OOXOOXXOOO OOOOOOOOXO XOOOOOXOOX OOOOXOXOXX OXOOXOOXOX OXXOOXOOOO OOOXOXOOXO OOOOOXOOOO
output:
0
result:
ok single line: '0'
Test #5:
score: 11
Accepted
time: 0ms
memory: 3776kb
input:
10 1 OXOXOOOOXX OXOXOOOOXX OXOXOOOOXX OXOXOOOOXX OXOXOOOOXX OXOXOOOOXX XOXOXXXXOO OXOXOOOOXX OXOXOOOOXX OXOXOOOOXX
output:
1
result:
ok single line: '1'
Test #6:
score: 11
Accepted
time: 0ms
memory: 3608kb
input:
10 1 OXOXOOOOXX OXOXOOOOXX OXOXOOOOXX OXOXOOOOXX OXOXOOOOXX OXOXOOOOXX XOXOXXXXOO OXOXOOOOXX OXXXOOOOXX OXOXOOOOXX
output:
0
result:
ok single line: '0'
Test #7:
score: 11
Accepted
time: 0ms
memory: 3552kb
input:
10 1 XXXXXOOOXX OOOOOXXOXO XOOOOXXXXO OOXOXOOOXO XOOOOOOOXX XXOXXOOXOO XOXXOXXXOX OOOXXXOXXX XOXXXOXOXX OXXXXXOXOO
output:
0
result:
ok single line: '0'
Test #8:
score: 11
Accepted
time: 0ms
memory: 3612kb
input:
10 1 OOOOXXXOOX XXXXOOOXXO XXXXOOOXXO XXXXOOOXXO XXXXOOOXXO OOOOXXXOOX OOOOXXXOOX XXXXOOOXXO OOOOXXXOOX XXXXOOOXXO
output:
1
result:
ok single line: '1'
Test #9:
score: 11
Accepted
time: 0ms
memory: 3648kb
input:
10 1 OOOOXXXOOX XXXXOOOXXO XXXXOOOXXO XXXXOOOXXO XXXXOOOXXO OOOOXXXOOX OOOOXXXOOX XXXXOOOXXO OOOOXXXOOX XXXOOOOXXO
output:
0
result:
ok single line: '0'
Test #10:
score: 11
Accepted
time: 0ms
memory: 3776kb
input:
10 1 XXOXXXXXXX XXXOXXXOXX XXXXOOXOXX XXOOXXOOOX XXXOXXOOXX OOXXOXOXXX XOXOXOXXXO XXXOOXXXOX OXOOXXXXOO XXOXOOOXXO
output:
0
result:
ok single line: '0'
Test #11:
score: 11
Accepted
time: 0ms
memory: 3776kb
input:
10 1 OXOOOOOOOO OXOOOOOOOO OXOOOOOOOO XOXXXXXXXX OXOOOOOOOO OXOOOOOOOO OXOOOOOOOO XOXXXXXXXX OXOOOOOOOO OXOOOOOOOO
output:
1
result:
ok single line: '1'
Test #12:
score: 11
Accepted
time: 0ms
memory: 3812kb
input:
10 1 OXOOOOOOOO OXOOOOOOOO OXOOOOOOOO XOXXXXXXXX OXOOOOOOOX OXOOOOOOOO OXOOOOOOOO XOXXXXXXXX OXOOOOOOOO OXOOOOOOOO
output:
0
result:
ok single line: '0'
Test #13:
score: 11
Accepted
time: 0ms
memory: 3612kb
input:
10 1 XOXXXXOXXX XXXXOOXXXX OOXXOXXXXX XXXOOXXOOX OXXXXXXXXX XXXXXXXXOX XXXXXXXOXO OXXXXXXXXX XXXOOXXXOX XXXXXXXXXX
output:
0
result:
ok single line: '0'
Test #14:
score: 11
Accepted
time: 0ms
memory: 3608kb
input:
10 1 XOOOOXOOOO XOOOOXOOOO XOOOOXOOOO XOOOOXOOOO OXXXXOXXXX OXXXXOXXXX XOOOOXOOOO XOOOOXOOOO XOOOOXOOOO XOOOOXOOOO
output:
1
result:
ok single line: '1'
Test #15:
score: 11
Accepted
time: 0ms
memory: 3588kb
input:
10 1 XOOOOXOOOO XOOOOXOOOO XOOOOXOOOO XOOOOXOOOO OXXXXOXXXX OXXXXOXXXX XOOOOXOOOO XOOOOXOOOX XOOOOXOOOO XOOOOXOOOO
output:
0
result:
ok single line: '0'
Test #16:
score: 11
Accepted
time: 0ms
memory: 3616kb
input:
5 2 XOOOX XOXOO OXXOO OXOOO OOOXO
output:
0
result:
ok single line: '0'
Test #17:
score: 11
Accepted
time: 0ms
memory: 3836kb
input:
5 2 XOOXX XOOXX OOXXO XOOXX OOXXO
output:
1
result:
ok single line: '1'
Test #18:
score: 11
Accepted
time: 0ms
memory: 3552kb
input:
5 2 XOOXX XOOXX OOXXO XOOOX OOXXO
output:
0
result:
ok single line: '0'
Test #19:
score: 11
Accepted
time: 0ms
memory: 3808kb
input:
5 2 XOXOO OOXOO OOOXO OOXOX XOXXO
output:
0
result:
ok single line: '0'
Test #20:
score: 11
Accepted
time: 0ms
memory: 3612kb
input:
5 2 XXXXX XOXOO OOOOO OXOXX OXOXO
output:
1
result:
ok single line: '1'
Test #21:
score: 11
Accepted
time: 0ms
memory: 3844kb
input:
5 2 XXXXX XOXOO OOOOO OOOXX OXOXO
output:
0
result:
ok single line: '0'
Test #22:
score: 11
Accepted
time: 0ms
memory: 3612kb
input:
5 2 XXOXO XXXXO XXOXO XXOOX OOOOO
output:
0
result:
ok single line: '0'
Test #23:
score: 11
Accepted
time: 0ms
memory: 3780kb
input:
5 2 OXXXO OXOOO XOOOX OXOOO XOOOX
output:
1
result:
ok single line: '1'
Test #24:
score: 0
Wrong Answer
time: 0ms
memory: 3616kb
input:
5 2 OXXXO OXOOO XOOOX OXOOO XXOOX
output:
1
result:
wrong answer 1st lines differ - expected: '0', found: '1'
Subtask #2:
score: 50
Accepted
Test #46:
score: 50
Accepted
time: 18ms
memory: 6212kb
input:
1000 1 OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOXOOOOOOOOOOOOOOOOOXOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOXOOOOOOOOOOOXOOOOOOOXOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOXOOOOOOOOOXOOOOOOXOOOOOOOOOOOOOOOOXOOOOOOXOOOOOOOOOOOOOXOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOXOOOOOOOOOOOOOOOXOOOOO...
output:
0
result:
ok single line: '0'
Test #47:
score: 50
Accepted
time: 16ms
memory: 6056kb
input:
1000 1 OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOXOOOOOOOOOOOOOOOOOXOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOXOOOOOOOOOOOXOOOOOOOXOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOXOOOOOOOOOXOOOOOOXOOOOOOOOOOOOOOOOXOOOOOOXOOOOOOOOOOOOOXOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOXOOOOOOOOOOOOOOOXOOOOOO...
output:
1
result:
ok single line: '1'
Test #48:
score: 50
Accepted
time: 17ms
memory: 6208kb
input:
1000 1 OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOXOOOOOOOOOOOOOOOOOXOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOXOOOOOOOOOOOXOOOOOOOXOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOXOOOOOOOOOXOOOOOOXOOOOOOOOOOOOOOOOXOOOOOOXOOOOOOOOOOOOOXOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOXOOOOOOOOOOOOOOOXOOOOOO...
output:
0
result:
ok single line: '0'
Test #49:
score: 50
Accepted
time: 17ms
memory: 6088kb
input:
1000 1 XOOOOOOOOOOOXOOOOXXOOOOOOOOOOOOOXOXOOXXOOOXOXXOOOXOXOXOOOOOOOOOOOOOOOOXOOOOXOOXOOOOOOOOOOOOOOOOOOOOOOOOOOOXOOOOOXOXOXOXOOOOOOOOOOOOOOOOOOOOOXOOOOOOOXOOOOOOOOOOXOOOOOOOOOOOOOOOOOOXOOOOOXOOOOOOOOOOOOOOOOOOOOXOOOOOOXOOOOOXOXOXOOOOOOOOXOOOOOOOOOOXOOXXOOOOOOXOOOXOOOOOOOOOXOXOOOOOXOOOOOOOOOOOOOOOOO...
output:
0
result:
ok single line: '0'
Test #50:
score: 50
Accepted
time: 16ms
memory: 6168kb
input:
1000 1 XXXXXXXXXXXOXXXXOOXXXXXXXXXXXXXOXOXXOOXXXOXOOXXXOXOXOXXXXXXXXXXXXXXXXOXXXXOXXOXXXXXXXXXXXXXXXXXXXXXXXXXXXOXXXXXOXOXOXOXXXXXXXXXXXXXXXXXXXXXOXXXXXXXOXXXXXXXXXXOXXXXXXXXXXXXXXXXXXOXXXXXOXXXXXXXXXXXXXXXXXXXXOXXXXXXOXXXXXOXOXOXXXXXXXXOXXXXXXXXXXOXXOOXXXXXXOXXXOXXXXXXXXXOXOXXXXXOXXXXXXXXXXXXXXXXXX...
output:
1
result:
ok single line: '1'
Test #51:
score: 50
Accepted
time: 16ms
memory: 6168kb
input:
1000 1 XXXXXXXXXXXOXXXXOOXXXXXXXXXXXXXOXOXXOOXXXOXOOXXXOXOXOXXXXXXXXXXXXXXXXOXXXXOXXOXXXXXXXXXXXXXXXXXXXXXXXXXXXOXXXXXOXOXOXOXXXXXXXXXXXXXXXXXXXXXOXXXXXXXOXXXXXXXXXXOXXXXXXXXXXXXXXXXXXOXXXXXOXXXXXXXXXXXXXXXXXXXXOXXXXXXOXXXXXOXOXOXXXXXXXXOXXXXXXXXXXOXXOOXXXXXXOXXXOXXXXXXXXXOXOXXXXXOXXXXXXXXXXXXXXXXXX...
output:
0
result:
ok single line: '0'
Test #52:
score: 50
Accepted
time: 18ms
memory: 6044kb
input:
1000 1 OOXXOOOXOOOOOOOOOOOOXXOOXOXXXXOOOOOXXOOXXOOXXOXOXOOOOOXOOOOOOXOOOOOOOOXOOOOOXXOOOOOXOOOOXXXXOXOOOOXXOOOXXXOXOOXOOXOOXOXOOOXOXOXOXOOOOOOOOOXOOOOXOOOXOOOOOOOXOOOOOOOOOOOOOOOOOOOOOOOOOOXOOOOXOXOOXOXOXOXOXOOXOOOOOOXOOOOOOOOOOOOXXOOXOOOOXOOOXOOOOOOXOXOXOOOOXOOOOOOOOOOOOXOOOOOOOOXOXOOXOOOOOOXOOOOOO...
output:
0
result:
ok single line: '0'
Test #53:
score: 50
Accepted
time: 12ms
memory: 6016kb
input:
1000 1 OXXOOOXOOOOOOOOOOOOXXOOXOXXXXOOOOOXXOOXXOOXXOXOXOOOOOXOOOOOOXOOOOOOOOXOOOOOXXOOOOOXOOOOXXXXOXOOOOXXOOOXXXOXOOXOOXOOXOXOOOXOXOXOXOOOOOOOOOXOOOOXOOOXOOOOOOOXOOOOOOOOOOOOOOOOOOOOOOOOOOXOOOOXOXOOXOXOXOXOXOOXOOOOOOXOOOOOOOOOOOOXXOOXOOOOXOOOXOOOOOOXOXOXOOOOXOOOOOOOOOOOOXOOOOOOOOXOXOOXOOOOOOXOOOOOOO...
output:
1
result:
ok single line: '1'
Test #54:
score: 50
Accepted
time: 10ms
memory: 6168kb
input:
1000 1 OXXOOOXOOOOOOOOOOOOXXOOXOXXXXOOOOOXXOOXXOOXXOXOXOOOOOXOOOOOOXOOOOOOOOXOOOOOXXOOOOOXOOOOXXXXOXOOOOXXOOOXXXOXOOXOOXOOXOXOOOXOXOXOXOOOOOOOOOXOOOOXOOOXOOOOOOOXOOOOOOOOOOOOOOOOOOOOOOOOOOXOOOOXOXOOXOXOXOXOXOOXOOOOOOXOOOOOOOOOOOOXXOOXOOOOXOOOXOOOOOOXOXOXOOOOXOOOOOOOOOOOOXOOOOOOOOXOXOOXOOOOOOXOOOOOOO...
output:
0
result:
ok single line: '0'
Test #55:
score: 50
Accepted
time: 19ms
memory: 6100kb
input:
1000 1 OOOOOOXOOXXXOOOOOXOOOOOOOOOOOXOOOOOOOXOOOOOXXOOXXOXXOXOXXOOOOOOXXOXOOOXXXOOXOOOOOOOXOOOOXOOXXOOOOOOXOOOXOOOOOOOXOXOOXOXXXOXOOOOXOOOOOXOXOXXOOOXOOOOOOXXOOXOOOXOOXXOOXOXOOOOOOOOOOXOXOOXOXOXOXOOOOOOOXXOOOXOXOOOOXXXOOOOOXXOXOOXOOXOXOXOXOXOXOOOXOXOXXXOXOXOOOOXOOOXXOOXXXOOOOXOXOXXOOOXXOXXOOOOOXOOOO...
output:
0
result:
ok single line: '0'
Test #56:
score: 50
Accepted
time: 13ms
memory: 6184kb
input:
1000 1 OOOOOXOOXXXOOOOOXOOOOOOOOOOOXOOOOOOOXOOOOOXXOOXXOXXOXOXXOOOOOOXXOXOOOXXXOOXOOOOOOOXOOOOXOOXXOOOOOOXOOOXOOOOOOOXOXOOXOXXXOXOOOOXOOOOOXOXOXXOOOXOOOOOOXXOOXOOOXOOXXOOXOXOOOOOOOOOOXOXOOXOXOXOXOOOOOOOXXOOOXOXOOOOXXXOOOOOXXOXOOXOOXOXOXOXOXOXOOOXOXOXXXOXOXOOOOXOOOXXOOXXXOOOOXOXOXXOOOXXOXXOOOOOXOOOOX...
output:
1
result:
ok single line: '1'
Test #57:
score: 50
Accepted
time: 17ms
memory: 6168kb
input:
1000 1 OOOOOXOOXXXOOOOOXOOOOOOOOOOOXOOOOOOOXOOOOOXXOOXXOXXOXOXXOOOOOOXXOXOOOXXXOOXOOOOOOOXOOOOXOOXXOOOOOOXOOOXOOOOOOOXOXOOXOXXXOXOOOOXOOOOOXOXOXXOOOXOOOOOOXXOOXOOOXOOXXOOXOXOOOOOOOOOOXOXOOXOXOXOXOOOOOOOXXOOOXOXOOOOXXXOOOOOXXOXOOXOOXOXOXOXOXOXOOOXOXOXXXOXOXOOOOXOOOXXOOXXXOOOOXOXOXXOOOXXOXXOOOOOXOOOOX...
output:
0
result:
ok single line: '0'
Test #58:
score: 50
Accepted
time: 11ms
memory: 6044kb
input:
1000 1 XOOXOXOOXOOXXOXOOOXOOOOXOOXOXOXXXXXXXOXXOOXXXOOOXXOOOOOOOOXOOOXOXOOXOOXOOOXOXXOOOOXOOOOOXOOOXOOXOOOOOXOOOXXOOXOOOOXXXXOXXOOXXOXXXOXOOOOXXXXXXOOXXXOOXXOXOOXXXXXOXOXXXOOOXOOOXXOXXXXXOXOXOOOOOOOXXXOOXOOXXXXXXOXXOOOOXOOXOOXOXXOOXOOOXOXOXXXXOOOXOOOXXXOXXOOOOOXXOXOOOXXXXXOOOOXXOXXOOOXXXOOOOXXOXXOOX...
output:
0
result:
ok single line: '0'
Test #59:
score: 50
Accepted
time: 12ms
memory: 6048kb
input:
1000 1 XXOXOXXOXXOOXOXXXOXXXXOXXOXOXOOOOOOOXOOXXOOOXXXOOXXXXXXXXOXXXOXOXXOXXOXXXOXOOXXXXOXXXXXOXXXOXXOXXXXXOXXXOOXXOXXXXOOOOXOOXXOOXOOOXOXXXXOOOOOOXXOOOXXOOXOXXOOOOOXOXOOOXXXOXXXOOXOOOOOXOXOXXXXXXXOOOXXOXXOOOOOOXOOXXXXOXXOXXOXOOXXOXXXOXOXOOOOXXXOXXXOOOXOOXXXXXOOXOXXXOOOOOXXXXOOXOOXXXOOOXXXXOOXOOXXOX...
output:
1
result:
ok single line: '1'
Test #60:
score: 50
Accepted
time: 17ms
memory: 6108kb
input:
1000 1 XXOXOXXOXXOOXOXXXOXXXXOXXOXOXOOOOOOOXOOXXOOOXXXOOXXXXXXXXOXXXOXOXXOXXOXXXOXOOXXXXOXXXXXOXXXOXXOXXXXXOXXXOOXXOXXXXOOOOXOOXXOOXOOOXOXXXXOOOOOOXXOOOXXOOXOXXOOOOOXOXOOOXXXOXXXOOXOOOOOXOXOXXXXXXXOOOXXOXXOOOOOOXOOXXXXOXXOXXOXOOXXOXXXOXOXOOOOXXXOXXXOOOXOOXXXXXOOXOXXXOOOOOXXXXOOXOOXXXOOOXXXXOOXOOXXOX...
output:
0
result:
ok single line: '0'
Test #61:
score: 50
Accepted
time: 14ms
memory: 6168kb
input:
1000 1 XOXXOXXXXXXOXXOOXXOXOOXOXOXXOOXOOXXOOXXOXOOXXXXXXOXXXXXXXOXOOXXXXXOOOXXXOOXXXOOOOXXOOXXOXXXOXXOOXXOOXXOOXOOXOOXOXOXXXXOXOXOOOXOOOOXOXXXOXOXOXXXOXXOXOXXXXOXOXOOXXOOOXOOOXOXOXOXXOXOXXOOXXXXXOOOXOXXOXOXOXXXOOOXXOOOOXOXXOXOOOOXXOXXOOXXOOOXXXOOXOOOXOXOXOOXXXXXOOXXOOOOOOXXXXOXOOXXOXXOXXXOOOXXXXXOOO...
output:
0
result:
ok single line: '0'
Test #62:
score: 50
Accepted
time: 16ms
memory: 6088kb
input:
1000 1 XOOXOOOOOOXOOXXOOXOXXOXOXOOXXOXXOOXXOOXOXXOOOOOOXOOOOOOOXOXXOOOOOXXXOOOXXOOOXXXXOOXXOOXOOOXOOXXOOXXOOXXOXXOXXOXOXOOOOXOXOXXXOXXXXOXOOOXOXOXOOOXOOXOXOOOOXOXOXXOOXXXOXXXOXOXOXOOXOXOOXXOOOOOXXXOXOOXOXOXOOOXXXOOXXXXOXOOXOXXXXOOXOOXXOOXXXOOOXXOXXXOXOXOXXOOOOOXXOOXXXXXXOOOOXOXXOOXOOXOOOXXXOOOOOXXXO...
output:
1
result:
ok single line: '1'
Test #63:
score: 50
Accepted
time: 10ms
memory: 6036kb
input:
1000 1 XOOXOOOOOOXOOXXOOXOXXOXOXOOXXOXXOOXXOOXOXXOOOOOOXOOOOOOOXOXXOOOOOXXXOOOXXOOOXXXXOOXXOOXOOOXOOXXOOXXOOXXOXXOXXOXOXOOOOXOXOXXXOXXXXOXOOOXOXOXOOOXOOXOXOOOOXOXOXXOOXXXOXXXOXOXOXOOXOXOOXXOOOOOXXXOXOOXOXOXOOOXXXOOXXXXOXOOXOXXXXOOXOOXXOOXXXOOOXXOXXXOXOXOXXOOOOOXXOOXXXXXXOOOOXOXXOOXOOXOOOXXXOOOOOXXXO...
output:
0
result:
ok single line: '0'
Test #64:
score: 50
Accepted
time: 18ms
memory: 6036kb
input:
1000 1 OXXOOXXOXXXOOXXOXOXXXXXXXOOXXOXXXXXXXXOXXOXXXXOXXXXOOOOXXOXOOXOXXXXXOXXXXXOOXXXOOOXOXOXXXXXXXXXXXOXOXXOOXXXOOXXXXOOXXOOOXXOXXOXOXOXXXXXOXXXXOXXXOXXOXXXOXXXXXOXXXXXXOOXOXOXOXOXOXOXXXXXXXOXXXXOXXXXXXXXXOOOOOOXXXXOOOOXXXOXXOOXOXXXXXXXXXOXXOOXXXXOXXXXXXXXXOXXXOOXXOOXOOOXXXXOXOXXOXXXXOOXOXXOOXXXXX...
output:
0
result:
ok single line: '0'
Test #65:
score: 50
Accepted
time: 16ms
memory: 6132kb
input:
1000 1 XXOOXXOXXXOOXXOXOXXXXXXXOOXXOXXXXXXXXOXXOXXXXOXXXXOOOOXXOXOOXOXXXXXOXXXXXOOXXXOOOXOXOXXXXXXXXXXXOXOXXOOXXXOOXXXXOOXXOOOXXOXXOXOXOXXXXXOXXXXOXXXOXXOXXXOXXXXXOXXXXXXOOXOXOXOXOXOXOXXXXXXXOXXXXOXXXXXXXXXOOOOOOXXXXOOOOXXXOXXOOXOXXXXXXXXXOXXOOXXXXOXXXXXXXXXOXXXOOXXOOXOOOXXXXOXOXXOXXXXOOXOXXOOXXXXXO...
output:
1
result:
ok single line: '1'
Subtask #3:
score: 0
Wrong Answer
Test #66:
score: 39
Accepted
time: 12ms
memory: 6020kb
input:
1000 1 XXOOXXOXXXOOXXOXOXXXXXXXOOXXOXXXXXXXXOXXOXXXXOXXXXOOOOXXOXOOXOXXXXXOXXXXXOOXXXOOOXOXOXXXXXXXXXXXOXOXXOOXXXOOXXXXOOXXOOOXXOXXOXOXOXXXXXOXXXXOXXXOXXOXXXOXXXXXOXXXXXXOOXOXOXOXOXOXOXXXXXXXOXXXXOXXXXXXXXXOOOOOOXXXXOOOOXXXOXXOOXOXXXXXXXXXOXXOOXXXXOXXXXXXXXXOXXXOOXXOOXOOOXXXXOXOXXOXXXXOOXOXXOOXXXXXO...
output:
0
result:
ok single line: '0'
Test #67:
score: 39
Accepted
time: 18ms
memory: 6080kb
input:
1000 1 XXXXXXXXXOOXXXXOXXXXXXXXXXXOXXXXXOOOXXXOXOXXXXXXXXOXXXXOOXOXXOXXXXOOOXXXXXXXXXXOOXOXXXOOXOXXXXXXXXXXOOXXXXXXOXXOOXXXXXOOXXXXXXXXXOXXXXXXXXXXXXOXXXXXXOXXOXXOXXOOXXXXOOXOXOXXXXXXOOXOXOXXXXXOXXOXOXOXOXXOXOXOXXXXXXXOXXOXXXXXXXXXXOXXXXOOXXOXXOXXXXXXXXOXOOXXXOXOOXXXOXXXXXXXXOXXXXXXOXXXXXXOXXXXXOXXO...
output:
0
result:
ok single line: '0'
Test #68:
score: 39
Accepted
time: 12ms
memory: 6016kb
input:
1000 1 OOOOOOOOXXOOOOXOOOOOOOOOOOXOOOOOXXXOOOXOXOOOOOOOOXOOOOXXOXOOXOOOOXXXOOOOOOOOOOXXOXOOOXXOXOOOOOOOOOOXXOOOOOOXOOXXOOOOOXXOOOOOOOOOXOOOOOOOOOOOOXOOOOOOXOOXOOXOOXXOOOOXXOXOXOOOOOOXXOXOXOOOOOXOOXOXOXOXOOXOXOXOOOOOOOXOOXOOOOOOOOOOXOOOOXXOOXOOXOOOOOOOOXOXXOOOXOXXOOOXOOOOOOOOXOOOOOOXOOOOOOXOOOOOXOOXO...
output:
1
result:
ok single line: '1'
Test #69:
score: 39
Accepted
time: 13ms
memory: 6096kb
input:
1000 1 OOOOOOOOXXOOOOXOOOOOOOOOOOXOOOOOXXXOOOXOXOOOOOOOOXOOOOXXOXOOXOOOOXXXOOOOOOOOOOXXOXOOOXXOXOOOOOOOOOOXXOOOOOOXOOXXOOOOOXXOOOOOOOOOXOOOOOOOOOOOOXOOOOOOXOOXOOXOOXXOOOOXXOXOXOOOOOOXXOXOXOOOOOXOOXOXOXOXOOXOXOXOOOOOOOXOOXOOOOOOOOOOXOOOOXXOOXOOXOOOOOOOOXOXXOOOXOXXOOOXOOOOOOOOXOOOOOOXOOOOOOXOOOOOXOOXO...
output:
0
result:
ok single line: '0'
Test #70:
score: 39
Accepted
time: 18ms
memory: 6092kb
input:
1000 1 XXOOXXXXXXXXXXXXXXOXXXXXOXXXXXXOXXXXXXXXXOXXXXXXXOXXOXXXXXOXXXXXXOXXOXXXXXXXOXXOOXXXXOXXXXXXXOXOXXXXXOXXXXXXXXXXXXXOXXOXXXXXXXXXXXOXXXXXOOXXXXXXXXXXXOXXXOXXXXXXXOXOXXXXXXXXXXOXXXXOXXXOXXXXXXXOXXXXOXXXOXXXXXXXXOXOXXXXOXXOXXXXOXXXOXOXXXXXXOXXXOXXXXXXXXXXXXOXXXXOOXXXXOXXOXXXXXXXXXOXXOXOXOOXXXXXX...
output:
0
result:
ok single line: '0'
Test #71:
score: 39
Accepted
time: 16ms
memory: 5968kb
input:
1000 1 OXXOOOOOOOOOOOOOOXOOOOOXOOOOOOXOOOOOOOOOXOOOOOOOXOOXOOOOOXOOOOOOXOOXOOOOOOOXOOXXOOOOXOOOOOOOXOXOOOOOXOOOOOOOOOOOOOXOOXOOOOOOOOOOOXOOOOOXXOOOOOOOOOOOXOOOXOOOOOOOXOXOOOOOOOOOOXOOOOXOOOXOOOOOOOXOOOOXOOOXOOOOOOOOXOXOOOOXOOXOOOOXOOOXOXOOOOOOXOOOXOOOOOOOOOOOOXOOOOXXOOOOXOOXOOOOOOOOOXOOXOXOXXOOOOOOX...
output:
1
result:
ok single line: '1'
Test #72:
score: 39
Accepted
time: 8ms
memory: 6008kb
input:
1000 1 OXXOOOOOOOOOOOOOOXOOOOOXOOOOOOXOOOOOOOOOXOOOOOOOXOOXOOOOOXOOOOOOXOOXOOOOOOOXOOXXOOOOXOOOOOOOXOXOOOOOXOOOOOOOOOOOOOXOOXOOOOOOOOOOOXOOOOOXXOOOOOOOOOOOXOOOXOOOOOOOXOXOOOOOOOOOOXOOOOXOOOXOOOOOOOXOOOOXOOOXOOOOOOOOXOXOOOOXOOXOOOOXOOOXOXOOOOOOXOOOXOOOOOOOOOOOOXOOOOXXOOOOXOOXOOOOOOOOOXOOXOXOXXOOOOOOX...
output:
0
result:
ok single line: '0'
Test #73:
score: 39
Accepted
time: 17ms
memory: 6172kb
input:
1000 1 OXXXXXXXXXXXXXXXOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXOXXXXOXXXXXXXXXXXXXXXXXXXXXXXXXXXXOXXXXXXXXXXXXXXOXXXXXXOXXXXXXXXXXXXXXXXXXXXXXXXOXXXXXXXXXXXXXXXOXXXXOXXXXXXXXXXXXXXXXXXXXXXXXXOXXXXXXXXO...
output:
0
result:
ok single line: '0'
Test #74:
score: 39
Accepted
time: 16ms
memory: 6088kb
input:
1000 1 XXXXXXXXXXXXXXXOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXOXXXXOXXXXXXXXXXXXXXXXXXXXXXXXXXXXOXXXXXXXXXXXXXXOXXXXXXOXXXXXXXXXXXXXXXXXXXXXXXXOXXXXXXXXXXXXXXXOXXXXOXXXXXXXXXXXXXXXXXXXXXXXXXOXXXXXXXXOX...
output:
1
result:
ok single line: '1'
Test #75:
score: 39
Accepted
time: 11ms
memory: 6004kb
input:
1000 1 XXXXXXXXXXXXXXXOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXOXXXXOXXXXXXXXXXXXXXXXXXXXXXXXXXXXOXXXXXXXXXXXXXXOXXXXXXOXXXXXXXXXXXXXXXXXXXXXXXXOXXXXXXXXXXXXXXXOXXXXOXXXXXXXXXXXXXXXXXXXXXXXXXOXXXXXXXXOX...
output:
0
result:
ok single line: '0'
Test #76:
score: 39
Accepted
time: 9ms
memory: 6048kb
input:
1000 2 OOOXOOOXOOOXOOOOOOOOOOOOOOOOOXXOOOOOOOOOOXOOOOOOOXOOOOXOOOOOOOOOXOOOOOOOOOXOOOOOOOOXOOOOOOOOOOOOOXOOOOOXOOOOOOOOOOOOOOOOXXOOOOOXOXOOOXOOOOOOOOOOOOOOOXXOXOOOXXOOOOXXOXOOXOOOOOOOOOOOOOXOOOOOXOOOOOXOOOXOXOOOOOOOOOOOOXOOXOXOOOOXXOOOXOOOOOOOOOOOXOOXXXOOOXXOOOOOOOOXOXOOXOOOOXXOOOOOOOXOXXOOOXOXOOOOO...
output:
0
result:
ok single line: '0'
Test #77:
score: 0
Wrong Answer
time: 15ms
memory: 6072kb
input:
1000 2 OXOOOXOOOXOOOOOOOOOOOOOOOOOXXOOOOOOOOOOXOOOOOOOXOOOOXOOOOOOOOOXOOOOOOOOOXOOOOOOOOXOOOOOOOOOOOOOXOOOOOXOOOOOOOOOOOOOOOOXXOOOOOXOXOOOXOOOOOOOOOOOOOOOXXOXOOOXXOOOOXXOXOOXOOOOOOOOOOOOOXOOOOOXOOOOOXOOOXOXOOOOOOOOOOOOXOOXOXOOOOXXOOOXOOOOOOOOOOOXOOXXXOOOXXOOOOOOOOXOXOOXOOOOXXOOOOOOOXOXXOOOXOXOOOOOOO...
output:
0
result:
wrong answer 1st lines differ - expected: '1', found: '0'