# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
593256 | Bench0310 | Mecho (IOI09_mecho) | C++17 | 374 ms | 7184 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
int n,one;
cin >> n >> one;
vector<string> s(n);
array<int,2> bear;
array<int,2> house;
vector<array<int,2>> bees;
for(int i=0;i<n;i++)
{
cin >> s[i];
for(int j=0;j<n;j++)
{
if(s[i][j]=='M') bear={i,j};
if(s[i][j]=='D') house={i,j};
if(s[i][j]=='H') bees.push_back({i,j});
}
}
auto in=[&](int r,int c)->bool{return (0<=r&&r<n&&0<=c&&c<n);};
vector<array<int,2>> z={{1,0},{-1,0},{0,-1},{0,1}};
int ltime=-1,rtime=n*n;
while(ltime<rtime-1)
{
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |