# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1159292 | Ak_16 | Strange Device (APIO19_strange_device) | C++20 | 913 ms | 47460 KiB |
#include <iostream>
#include <algorithm>
using namespace std;
#define int long long
struct wei{
int l;
int r;
};
wei ar[2000005];
int gcd(int x, int y){
if(x*y==0){return x+y;}
if(x<y){swap(x,y);}
return gcd(y, x%y);
}
bool cmp(wei x, wei y){
if(x.r!=y.r){return x.r<y.r;}
return x.l < y.l;
}
signed main()
{
int n,a,b;
int n1,n2;
int pos[2000005];
int con[2000005];
int ll,rr;
cin>>n>>a>>b;
# | 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... |