# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
170153 | div2der | Red-blue table (IZhO19_stones) | C++14 | 44 ms | 1948 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 <set>
#include <map>
#include <algorithm>
using namespace std;
#define sz(s) (int)(s.size())
#define eb emplace_back
#define all(x) x.begin(), x.end()
const int N = 2e6;
const int NN = 4e3;
char a[NN][NN];
int c[N], r[N];
void solve(int n, int m) {
if (n <= m) {
int need = (m / 2 + 1);
int mx = n - (n / 2 + 1);
int pos = 1;
int ans = 0;
for (int i = 1; i <= n; ++ i) {
int cnt = 0;
int rev = pos++;
int res = 0;
while(cnt <= m and r[i] < need) {
++cnt;
if (res == need)
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |