# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1002198 | vjudge1 | 로봇 (APIO13_robots) | C++17 | 0 ms | 348 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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();
}
}
컴파일 시 표준 에러 (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... |