# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
138685 | Angelos | 이상한 기계 (APIO19_strange_device) | C++11 | 285 ms | 10332 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define MAXN 100100
#define x first
#define y second
using namespace std;
typedef long long ll;
typedef pair<ll,ll> pll;
typedef pair< pair<ll,ll> , pair<ll,ll> > ter;
vector < ter > vct;
int n;
ll A , B , D ,l[MAXN] , r[MAXN];
ll gcd(ll a , ll b){
if(a > b) swap(a,b);
if(a == 0) return b;
return gcd(a , b%a);
}
int equall(pll a, pll b){
if(a.x == b.x && a.y == b.y) return 2;
if(a.x == b.x) return a.y > b.y;
return a.x > b.x;
}
pll nxt(pll a){
if(a.y == B-1 && a.x == D-1) return {0,0};
if(a.y == B-1) return {a.x+1 , 0};
컴파일 시 표준 에러 (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... |