# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
871710 | serifefedartar | 이상한 기계 (APIO19_strange_device) | C++17 | 743 ms | 125496 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>
using namespace std;
#define fast ios::sync_with_stdio(0);cin.tie(0);
#define s second
#define f first
typedef long long ll;
const ll MOD = 1e9+9;
const ll LOGN = 20;
const ll MAXN = 6 * 1e6 + 50;
vector<pair<ll,ll>> v;
vector<ll> cc;
ll calc(ll A, ll B) {
return 1e18 / A < B ? 1e18 : A / __gcd(A, B + 1) * B;
if (1e18 / A < B)
return 1e18;
if (1e18 / B < A)
return 1e18;
return A * B;
}
int index(ll k) {
return upper_bound(cc.begin(), cc.end(), k) - cc.begin();
}
ll cnt[MAXN];
int main() {
fast
ll n, A, B;
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... |