# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
547589 | LittleFlowers__ | 이상한 기계 (APIO19_strange_device) | C++17 | 409 ms | 31628 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 <algorithm>
#include <bits/stdc++.h>
#define ll long long
#define fi first
#define se second
using namespace std;
int v2(ll n)
{
return log2(n);
}
int n, i, i1, i2, j, status = 0, idx;
pair<ll, ll> in[10000001];
pair<ll, ll> out[10000001];
ll a, b, tmp, l, r, cnt;
int main()
{
#define task "TASK"
if(fopen(task".inp", "r")) {
freopen(task".inp", "r", stdin);
//freopen(task".out","w",stdout);
}
cin.tie(0)->sync_with_stdio(0);
cin >> n >> a >> b;
tmp = a / (__gcd(a, b + 1));
i = 0;
while(i < n)
{
cin >> in[i].fi >> in[i].se;
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... |