# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1002198 | vjudge1 | Robots (APIO13_robots) | C++17 | 0 ms | 348 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 int long long
#define ll long double
#define MP make_pair
#define pii pair<int , int>
#define in insert
#define pb push_back
#define pf push_front
#define ppb pop_back()
#define ppf pop_front()
#define B begin()
#define E end()
#define F first
#define S second
#define sz size()
const int inf = 1e18;
const int maxn = 1e5 + 7;
const int mod = 1e9 + 7;
int n , w , h , dist[1000][1000];
char a[1000][1000];
bool used[1000][1000];
void sigma(){
cin >> n >> w >> h;
int b , c , d , e;
for (int i = 1; i <= h; i++) {
for (int j = 1; j <= w; j++) {
cin >> a[i][j];
if (a[i][j] == '1') b = i , c = j;
else if (a[i][j] == '2') d = i , e = j;
}
}
cout << 2;
}
signed main(){
// freopen("haircut.in" , "r" , stdin);
// freopen("haircut.out" , "w" , stdout);
ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
int test = 1;
// cin >> test;
while(test--) {
sigma();
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |