# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
221628 | MKopchev | Strange Device (APIO19_strange_device) | C++14 | 1050 ms | 102072 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;
const int nmax=1e6+42;
const long long inf=1e18;
int n;
long long A,B;
pair<long long,long long> inp[nmax];
vector< pair<long long,long long> > segments;
vector< pair<long long,int> > active;
bool cmp(pair<long long,int> s,pair<long long,int> t)
{
if(s.first!=t.first)return s.first<t.first;
return s.second>t.second;
}
int main()
{
scanf("%i%lld%lld",&n,&A,&B);
A=A/__gcd(A,B+1);
for(int i=1;i<=n;i++)
{
scanf("%lld%lld",&inp[i].first,&inp[i].second);
if(A>inf/B)segments.push_back(inp[i]);
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... |