| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1078336 | Maite_Morale | 마술쇼 (APIO24_show) | C++17 | 2 ms | 832 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
std::vector<std::pair<int,int>> Alice();
long long setN(int n);
long long Bob(std::vector<std::pair<int,int>> V);
const ll nodes=5000;
std::vector<std::pair<int,int>> Alice(){
long long x = setN(nodes);
std::vector<std::pair<int,int>> r={};
for(int i=1;i<=nodes;i++)if(x!=i)r.push_back({x,i});
return r;
}
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
std::vector<std::pair<int,int>> Alice();
long long setN(int n);
long long Bob(std::vector<std::pair<int,int>> V);
long long Bob(std::vector<std::pair<int,int>> V){
map<ll,ll> mp;
for(int i=0;i<V.size();i++){
mp[V[i].first]++;mp[V[i].second]++;
if(mp[V[i].first]==2)return V[i].first;
if(mp[V[i].second]==2)return V[i].second;
}
return 0;
}
컴파일 시 표준 에러 (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... | ||||
