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
#include
#include
#include
using namespace std; struct node{ int x; int y; int distance; node(){ } node(int _x, int _y, int _distance){ x=_x; y=_y; distance=_distance; } bool operator <(const node& temp)const{ return distance
>n; cin>>m; char matrica[n][m]; bool visited[n][m]; int sy; int sx; int ex; int ey; int distance[n][m]; vector
>v; priority_queue
pq; queue
q; for(int y=0; y
>matrica[x][x1]; if(matrica[x][x1]=='G'){ q.push(x); q.push(x1); q.push(0); } if(matrica[x][x1]=='R'){ sx=x; sy=x1; } if(matrica[x][x1]=='Z'){ ex=x; ey=x1; } } } for(int h=0; h
=0)and(ty>=0)and(tx
=0)and(tx>=0)and(tx
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)