# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
654280 | four_specks | Mecho (IOI09_mecho) | C++17 | 598 ms | 2044 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;
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... |