# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
587916 | MilosMilutinovic | Sjeckanje (COCI21_sjeckanje) | C++14 | 595 ms | 36220 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.
/**
* author: wxhtzdy
* created: 02.07.2022 15:37:43
**/
#include <bits/stdc++.h>
using namespace std;
struct node {
long long dp[2][2];
long long L, R;
};
const int MAX = 200000;
const long long inf = 1e10;
long long a[MAX];
node st[4 * MAX];
int sgn(long long x) {
return (x < 0 ? -1 : (x == 0 ? 0 : 1));
}
node merge(node l, node r) {
node ret;
ret.L = l.L;
ret.R = r.R;
for (int i = 0; i < 2; i++) {
for (int j = 0; j < 2; j++) {
ret.dp[i][j] = -inf;
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |