# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1165556 | sleepntsheep | Progression (NOI20_progression) | C++20 | 1014 ms | 110360 KiB |
#include <stdio.h>
int max1(int i, int j) {
return i > j ? i : j;
}
int min1(int i, int j) {
return i < j ? i : j;
}
#define N (1333333)
struct Line {
using T = long long;
T m, c;
T operator()(T x) {
return x * m + c;
}
Line friend operator+(const Line &a, const Line &b) {
return Line{a.m + b.m, a.c + b.c};
}
void operator+=(const Line &o) {
m += o.m;
c += o.c;
}
Line friend operator*(const Line &a, T x) {
return Line{a.m * x, a.c * x};
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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |