Submission #1078276

#TimeUsernameProblemLanguageResultExecution timeMemory
1078276Marco_Escandon마술쇼 (APIO24_show)C++17
0 / 100
2 ms832 KiB

#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++)
	{
		temp.push_back({i,n});
	}
    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
}


Compilation message (stderr)

Alice.cpp: In function 'std::vector<std::pair<int, int> > Alice()':
Alice.cpp:7:15: warning: unused variable 'x' [-Wunused-variable]
    7 |     long long x = setN(5000);
      |               ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...