# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
435591 | Noam527 | Distributing Candies (IOI21_candies) | C++17 | 1016 ms | 35596 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>
typedef long long ll;
typedef long double ldb;
const int md = 1e9 + 7;
const ll inf = 3e18;
const int OO = 1;
using namespace std;
#include "candies.h"
struct info {
ll mn, mx;
int imn, imx;
info() {
mn = inf;
mx = -inf;
imn = imx = -1;
}
info(int index) {
mn = mx = 0;
imn = imx = index;
}
void use(const info &a) {
if (mn > a.mn) {
mn = a.mn;
imn = a.imn;
}
if (mx < a.mx) {
mx = a.mx;
imx = a.imx;
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... |