이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "Alice.h"
#include <bits/stdc++.h>
using namespace std;
typedef int ll;
std::vector<std::pair<int,int>> Alice(){
long long x = setN(5000);
ll n=5000;
vector<pair<ll,ll>> temp;
for(int i=1; i<=n; i++)
{
if(i!=x)
temp.push_back({i,x});
}
return temp;
}
#include "Bob.h"
#include <bits/stdc++.h>
using namespace std;
typedef int ll;
long long Bob(std::vector<std::pair<int,int>> V){
vector<ll> v(5001,0);
for(auto i:V)
{
v[i.first]++;
v[i.second]++;
}
pair<ll,ll> bs;
for(int i=0; i<5001; i++)
{
bs=max(make_pair(v[i],i),bs);
}
return bs.second; // change this into your code
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |