| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1307905 | islam_2010 | 마술쇼 (APIO24_show) | C++20 | 1 ms | 340 KiB |
#include "Alice.h"
#include <bits/stdc++.h>
using namespace std;
vector<pair<int,int>> Alice() {
vector<pair<int,int>> v;
int64_t x = setN(100);
for(int64_t i = 1; i < 100; i++) {
int r = x % i;
v.push_back({i+1, r});
}
return v;
}
#include "Bob.h"
#include <bits/stdc++.h>
using namespace std;
long long Bob(vector<pair<int,int>> V) {
long long x = 0, d = 1;
for(auto i : V) {
long long a = i.first - 1;
long long r = i.second;
while(x % a != r) {
x += d;
}
d *= a / __gcd(a, d);
}
return x;
}
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
