# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
742754 | speedyArda | Strange Device (APIO19_strange_device) | C++14 | 4634 ms | 524288 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;
using ll = long long;
const int MAXN = 2e6+5;
map<ll, bool> visited;
vector< pair<ll, ll> > imp;
ll n, a, b;
int main()
{
/*for(ll a = 1; a <= 20; a++)
{
for(ll b = 1; b <= 20; b++)
{
map<pair<ll, ll> , bool> used;
ll time = 0;
while(!used[{(time + time / b) % a, time % b}])
{
used[{(time + time / b) % a, time % b}] = true;
time++;
}
cout << a << " " << b << " " << time << "\n";
}
}*/
cin >> n >> a >> b;
ll sum = 0;
ll big = 1;
map<pair<ll, ll>, bool> used;
ll time = 0;
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... |