# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
677193 | Iliya | 이상한 기계 (APIO19_strange_device) | C++17 | 1094 ms | 63256 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
#define F first
#define S second
#define pb push_back
#define Sz(x) int((x).size())
#define All(x) (x).begin(), (x).end()
using namespace std;
typedef long long ll;
typedef long double ld;
const int N = 1e5 + 10;
const ll INF = 1e18;
const int MOD = 1e9 + 7;
ll gcd(ll a, ll b) {
return !b ? a : gcd(b, a % b);
}
map<ll, ll> PS;
ll n, l, r, A, B, G, P, pos, ans, last;
int main(){
ios::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
scanf("%lld%lld%lld", &n, &A, &B);
G = gcd(A, B + 1);
P = (INF / B < A / G ? INF : A / G * B);
for(int i = 0; i < n; i++) {
컴파일 시 표준 에러 (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... |