#include <bits/stdc++.h>
using namespace std;
#include "Alice.h"
vector<pair<int, int>> Alice()
{
vector<pair<int, int>> res;
long long x = setN(5000);
for (int i = 1; i <= 5000; i++)
{
if (i != x)
res.push_back({i, x});
}
return res;
}
#include <bits/stdc++.h>
using namespace std;
#include "Bob.h"
long long Bob(vector<pair<int, int>> V)
{
int mx = 1;
map<int, int> mp;
for (auto &[x, y] : V)
{
mp[x]++;
mp[y]++;
}
for (auto &[x, y] : mp)
{
if (mp[mx] < y)
mx = x;
}
return mx;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
1076 KB |
Correct. |
2 |
Correct |
2 ms |
832 KB |
Correct. |
3 |
Correct |
2 ms |
836 KB |
Correct. |
4 |
Correct |
2 ms |
820 KB |
Correct. |
5 |
Correct |
2 ms |
1084 KB |
Correct. |
6 |
Correct |
2 ms |
1076 KB |
Correct. |
7 |
Correct |
2 ms |
1076 KB |
Correct. |
8 |
Correct |
2 ms |
1076 KB |
Correct. |
9 |
Correct |
3 ms |
1076 KB |
Correct. |
10 |
Correct |
2 ms |
1072 KB |
Correct. |
11 |
Correct |
2 ms |
1072 KB |
Correct. |
12 |
Correct |
2 ms |
1072 KB |
Correct. |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
1076 KB |
Correct. |
2 |
Correct |
2 ms |
832 KB |
Correct. |
3 |
Correct |
2 ms |
836 KB |
Correct. |
4 |
Correct |
2 ms |
820 KB |
Correct. |
5 |
Correct |
2 ms |
1084 KB |
Correct. |
6 |
Correct |
2 ms |
1076 KB |
Correct. |
7 |
Correct |
2 ms |
1076 KB |
Correct. |
8 |
Correct |
2 ms |
1076 KB |
Correct. |
9 |
Correct |
3 ms |
1076 KB |
Correct. |
10 |
Correct |
2 ms |
1072 KB |
Correct. |
11 |
Correct |
2 ms |
1072 KB |
Correct. |
12 |
Correct |
2 ms |
1072 KB |
Correct. |
13 |
Incorrect |
0 ms |
344 KB |
Output isn't correct |
14 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
1076 KB |
Correct. |
2 |
Correct |
2 ms |
832 KB |
Correct. |
3 |
Correct |
2 ms |
836 KB |
Correct. |
4 |
Correct |
2 ms |
820 KB |
Correct. |
5 |
Correct |
2 ms |
1084 KB |
Correct. |
6 |
Correct |
2 ms |
1076 KB |
Correct. |
7 |
Correct |
2 ms |
1076 KB |
Correct. |
8 |
Correct |
2 ms |
1076 KB |
Correct. |
9 |
Correct |
3 ms |
1076 KB |
Correct. |
10 |
Correct |
2 ms |
1072 KB |
Correct. |
11 |
Correct |
2 ms |
1072 KB |
Correct. |
12 |
Correct |
2 ms |
1072 KB |
Correct. |
13 |
Incorrect |
0 ms |
344 KB |
Output isn't correct |
14 |
Halted |
0 ms |
0 KB |
- |