| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 | 
|---|---|---|---|---|---|---|---|
| 124433 | AyaBenSaad | 이상한 기계 (APIO19_strange_device) | C++14 | 5077 ms | 524288 KiB | 
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define ll long long 
// sub 4
using namespace std;
const int M = 2e6 + 6;
int n;
ll a, b;
ll l[M], r[M];
set <pair <ll, ll> >s;
int main () {
    scanf ("%d %lld %lld", &n, &a, &b);
    for (int i = 0; i < n; i++) {
        scanf("%lld %lld", &l[i], &r[i]);
        for (long long j = l[i]; j <= r[i]; j++) {
            long long x = (j + (j/b)) % a;
            long long y = j % b;
            s.insert ({x, y});
        }
    }
    printf("%d\n", (int)s.size());
}
 
컴파일 시 표준 에러 (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... | ||||
