Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //https://cplusplus.com/reference/map/map/?kw=map
- #pragma GCC optimize("O3")
- #include <bits/stdc++.h>
- using namespace std;
- #define int long long
- #define fastio ios_base::sync_with_stdio(0); cin.tie(0)
- signed main()
- {
- fastio;
- /*map<string , string> mp;
- mp["AC"] = "Accepted";
- mp["WA"] = "Wrong Answer";
- cout << mp["AC"] << '\n'; //
- cout << mp.size() << '\n'; //
- cout << mp["TLE"] << '\n';
- cout << mp.size() << '\n';
- mp["AA"] = "BB";
- for(auto i : mp){
- cout << i.first << " " << i.second << '\n';
- }*/
- map<string , vector<string> > v;
- v["AC"].push_back("Accepted");
- v["AC"].push_back("100%");
- for(auto i : v["AC"]){
- cout << i << " ";
- }
- /*
- {"AC" , "Accepted"}
- {"TLE" , ""}
- {"WA" , "Wrong Answer"}
- 8
- 1 2 2 3 4 4 3 3 105
- {1 , 1}
- {2 , 2}
- {3 , 3}
- {4 , 2}
- {105 , 1}
- */
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement