home archives github knives links
tags 并查集 leetcode hash表
categories
only title title and content
leetcode128

题解

c++ hash表

#include <stdio.h>
#include <unordered_map>

#define GREEN(format, ...) \
printf("\033[1;32m" format "\33[0m\n", ## __VA_ARGS__)

using namespace std;

int main()
{
unordered_map<int, int> my_map;
pair<int, int> my_pair (2147483647, 1);
my_map.insert(my_pair);
if (my_map.count(2147483647) > 0) {
GREEN("%d", my_map[2147483647]);
}
return 0;
}

TODO

debug