# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1107973 | AlgorithmWarrior | 마술쇼 (APIO24_show) | C++17 | 0 ms | 0 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#include "Alice.h"
using namespace std;
vector<pair<int,int>>Alice(){
long long x=long long setN(3602);
vector<pair<int,int>>tree;
tree.push_back({1,2});
int i,j;
for(i=0;i<60;++i){
int bit=(x&(1<<i));
for(j=0;j<60;++j){
tree.push_back({bit+1,3+i*60+j});
}
}
return tree;
}
#include <bits/stdc++.h>
#include "Bob.h"
using namespace std;
long long Bob(vector<pair<int,int>> V){
long long x=0;
for(auto edge : V){
if(edge.first==2){
x|=(1<<((edge.second-3)/60));
}
}
return x;
}