This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <queue> | |
#include <vector> | |
using namespace std; | |
#define max_vertex 20'001 | |
#define inf 10'000'000 | |
vector<pair<int, int>> vec[max_vertex]; | |
//vector<int> dir; | |
int dist[max_vertex]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <iomanip> | |
#include <string> | |
#include <sstream> // istringstream | |
#include <algorithm> // replace_if(), for_each() | |
#include <map> | |
#include <cctype> // isalpha() | |
#include <iterator> // istream_iterator | |
using std::string; | |
using namespace std; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <map> //map, multimap | |
#include <utility> //pair, make_pair | |
#include <unordered_map> // unordered_map, unordered_multimap | |
#include <ostream> | |
#include <istream> | |
using namespace std; | |
#ifndef NAME_H | |
#define NAME_H |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <map> //map, multimap | |
#include <utility> //pair, make_pair | |
#include <unordered_map> // unordered_map, unordered_multimap | |
using namespace std; | |
int main() | |
{ | |
map<string, size_t> people{ make_pair("Ann", 25), make_pair("Bill", 46) }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <map> //map, multimap | |
#include <utility> //pair, make_pair | |
#include <unordered_map> // unordered_map, unordered_multimap | |
using namespace std; | |
int main() | |
{ | |
map<string, size_t> people{ make_pair("Ann", 25), make_pair("Bill", 46) }; |