| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1020153 | bachhoangxuan | 마술쇼 (APIO24_show) | C++17 | 3 ms | 1076 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#include "Alice.h"
using namespace std;
std::vector<std::pair<int,int>> Alice(){
long long x = setN(5000);
vector<pair<int,int>> G;
for(int i=2;i<=5000;i++) G.emplace_back(x%(i-1)+1,i);
return G;
}#include <bits/stdc++.h>
#include "Bob.h"
using namespace std;
long long Bob(std::vector<std::pair<int,int>> V){
long long ans=0,L=1;
for(auto [x,y]:V){
x--;y--;
while(ans%y!=x) ans+=L;
L*=y/__gcd((long long)y,L);
}
return ans;
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
