제출 #1084841

#제출 시각아이디문제언어결과실행 시간메모리
1084841Timosh마술쇼 (APIO24_show)C++17
5 / 100
3 ms1084 KiB
#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; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...