Cod sursa(job #2398346)
| Utilizator | Data | 5 aprilie 2019 13:06:10 | |
|---|---|---|---|
| Problema | Abc2 | Scor | 0 |
| Compilator | cpp-64 | Status | done |
| Runda | Arhiva de probleme | Marime | 0.47 kb |
#include <fstream>
#include <unordered_map>
#define mod 250000
using namespace std;
ifstream f("hashuri.in");
ofstream g("hashuri.out");
unordered_map <int,int> v;
unordered_map <int,int>::iterator it;
int main()
{ for(int i=1;i<=15;i++)
v.insert(make_pair(i%5,i));
for(int i=0;i<v.bucket_count();i++){
for(auto l_it=v.begin(i);l_it!=v.end(i);l_it++)
g<<l_it->first<<' '<<l_it->second<<' ';
g<<'\n';
}
return 0;
}
