답안 #1078278

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1078278 2024-08-27T14:46:19 Z Marco_Escandon 마술쇼 (APIO24_show) C++17
5 / 100
2 ms 1072 KB
#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
}
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 820 KB Correct.
2 Correct 2 ms 824 KB Correct.
3 Correct 2 ms 820 KB Correct.
4 Correct 2 ms 820 KB Correct.
5 Correct 1 ms 816 KB Correct.
6 Correct 2 ms 820 KB Correct.
7 Correct 2 ms 1072 KB Correct.
8 Correct 2 ms 816 KB Correct.
9 Correct 2 ms 820 KB Correct.
10 Correct 2 ms 820 KB Correct.
11 Correct 2 ms 820 KB Correct.
12 Correct 2 ms 824 KB Correct.
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 820 KB Correct.
2 Correct 2 ms 824 KB Correct.
3 Correct 2 ms 820 KB Correct.
4 Correct 2 ms 820 KB Correct.
5 Correct 1 ms 816 KB Correct.
6 Correct 2 ms 820 KB Correct.
7 Correct 2 ms 1072 KB Correct.
8 Correct 2 ms 816 KB Correct.
9 Correct 2 ms 820 KB Correct.
10 Correct 2 ms 820 KB Correct.
11 Correct 2 ms 820 KB Correct.
12 Correct 2 ms 824 KB Correct.
13 Incorrect 1 ms 344 KB Output isn't correct
14 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 820 KB Correct.
2 Correct 2 ms 824 KB Correct.
3 Correct 2 ms 820 KB Correct.
4 Correct 2 ms 820 KB Correct.
5 Correct 1 ms 816 KB Correct.
6 Correct 2 ms 820 KB Correct.
7 Correct 2 ms 1072 KB Correct.
8 Correct 2 ms 816 KB Correct.
9 Correct 2 ms 820 KB Correct.
10 Correct 2 ms 820 KB Correct.
11 Correct 2 ms 820 KB Correct.
12 Correct 2 ms 824 KB Correct.
13 Incorrect 1 ms 344 KB Output isn't correct
14 Halted 0 ms 0 KB -