# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
707951 | spensa | Tracks in the Snow (BOI13_tracks) | C++14 | 1214 ms | 277680 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.
#include <bits/stdc++.h>
using namespace std;
#define pii pair<int,int>
int L[] = {0, 0, 1, -1};
int R[] = {1, -1, 0, 0};
const int MXN = 4020;
int arr[MXN][MXN] = {0};
int dist[MXN][MXN] = {0};
int vis[MXN][MXN] = {0};
int h, w;
bool check(int a, int b){
if(a<1 || b<1 || a>h || b>w) return false;
else return true;
}
int main(){
//faster io
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cin>>h>>w;
string str;
char c;
int a, b, n1, n2, mx;
for(int i=1; i<=h; i++){
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |