Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
#include
#include
using namespace std; int main() { int n; int m; cin>>n>>m; char matrica[n][m]; queue
q; int volci=0; int ovci=0; for(int x=0; x
>matrica[x][x1]; } } bool visited[n][m]; for(int y=0; y
=0)and(matrica[ci-1][cj]!='#')and(visited[ci-1][cj]!=true)){ q.push(ci-1); q.push(cj); visited[ci-1][cj]=true; } if((cj+1
=0)and(matrica[ci][cj-1]!='#')and(visited[ci][cj-1]!=true)){ q.push(ci); q.push(cj-1); visited[ci][cj-1]=true; } if(matrica[ci][cj]=='v'){ vbr+=1; } else if(matrica[ci][cj]=='o'){ obr+=1; } } if(vbr>=obr){ volci+=vbr; } else{ ovci+=obr; } } } } cout<
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)