# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
654280 | four_specks | Mecho (IOI09_mecho) | C++17 | 598 ms | 2044 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
inline namespace
{
} // namespace
void solve()
{
int n, s;
cin >> n >> s;
vector<string> grid(n);
for (string &row : grid)
cin >> row;
vector grass(n, vector<bool>(n, 1));
vector<array<int, 2>> hives;
array<int, 2> honey, home;
for (int i = 0; i < n; i++)
{
for (int j = 0; j < n; j++)
{
char cell = grid[i][j];
if (cell == 'T')
grass[i][j] = 0;
else if (cell == 'M')
honey = {i, j};
else if (cell == 'D')
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |