# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
320376 | AlexLuchianov | Mecho (IOI09_mecho) | C++14 | 271 ms | 7140 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 <iostream>
#include <vector>
#include <cassert>
#include <queue>
#include <algorithm>
using ll = long long;
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
#define MAX(a, b) (((a) < (b)) ? (b) : (a))
int const nmax = 800;
int const iplus[4] = {0, 0, 1, -1};
int const jplus[4] = {1, -1, 0, 0};
char v[1 + nmax][1 + nmax];
int n, k;
bool valid(int x, int y) {
return 1 <= x && x <= n && 1 <= y && y <= n;
}
int bee[1 + nmax][1 + nmax];
void add_bees() {
std::queue<std::pair<int,int>> q;
for(int i = 1;i <= n; i++)
for(int j = 1;j <= n; j++)
bee[i][j] = -1;
for(int i = 1;i <= n; i++)
for(int j = 1;j <= n; j++)
if(v[i][j] == 'H') {
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |