# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
365007 | Falseee | Zoo (COCI19_zoo) | C++17 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
{
if(g[i][j] == 'T'){
g[i][j]='B';
}else if(g[i][j]=='B'){
g[i][j]='T';
}
}
}
}
int res = 0;
F0R(i, n){
F0R(j, m){
if(g[i][j]=='T'){
res=1;
break;
}
}
if(res){
break;
}
}
F0R(i, n){
F0R(j, m){
if(g[i][j] =='B' && !vis[i][j]){
flood(i, j);