# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1158261 | AlgorithmWarrior | Strange Device (APIO19_strange_device) | C++20 | 1086 ms | 63120 KiB |
#include <bits/stdc++.h>
#define ll __int128
using namespace std;
int const MAX=4e6+5;
struct operation{
ll pos;
int type;
bool operator<(operation ot){
return pos<ot.pos;
}
}ops[MAX];
ll cmmdc(ll a,ll b){
while(b){
ll r=a%b;
a=b;
b=r;
}
return a;
}
ll cmmmc(ll a,ll b){
return a*b/cmmdc(a,b);
}
long long n,a,b;
ll rep;
int total_ops;
# | 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... |