# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
171750 | Sensei | Strange Device (APIO19_strange_device) | C++17 | 654 ms | 19696 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.
/*
DATE: 2019-12-30 11:10:15
NAME:
PROBLEM: APIO19_strange_device
*/
#include <bits/stdc++.h>
using namespace std;
const int MAXN = 1e6;
const long long LLINF = 1e18 + 100;
class Segment {
public:
long long l, r;
Segment() {}
Segment(long long x, long long y) {
l = x;
r = y;
}
};
long long f(long long x, long long y) {
if (x / __gcd(x, y + 1) > LLINF / y) {
return LLINF;
}
return x / __gcd(x, y + 1) * y;
}
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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |