OverClocking!

This commit is contained in:
e2hang
2025-08-15 22:16:42 +08:00
parent f40ad1c843
commit 8edd0f98b5
7 changed files with 50 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
#include <iostream>
#include <vector>
#include <utility>
using namespace std;
int main(){
int n, m, p;
cin >> n >> m >> p;
vector<vector<pair<int, int>>> table;
table.resize(n + 1);
int a, b;
for(int i = 0; i < m; i++){
cin >> a >> b;
}
//unordered_map<int, int> s, rs;
//rs : Value -> Key
/*
int a, b;
for(int i = 0; i < m; i++){
cin >> a >> b;
if(rs.count(a) == 0 && rs.count(b) == 0){
rs.emplace(make_pair(a, i));
rs.emplace(make_pair(b, i));
s.emplace(make_pair(i, a));
s.emplace(make_pair(i, b))
}
else if(rs.count(a) == 0 && rs.count(b) !=0){
int key = rs.find(b)->second;
rs.emplace(make_pair(a, key));
s.emplace(make_pair(key, a));
}
else if(rs.count(b) == 0 && rs.count(a) !=0){
int key = rs.find(a)->second;
rs.emplace(make_pair(b, key));
s.emplace(make_pair(key, b));
}
else{
int keya = rs.find(a)->second;
int keyb = rs.find(b)->second;
if(s.count(keya) < s.count(keyb)){
//move bucket keya to keyb
//noooooooooo, can't change key
}
}
}*/
return 0;
}