Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int main()
- {
- int n,i,j,k;
- map< pair<int,int>, int> mp;
- cin>>n;
- for(i=2;i<=2*n;i++)
- {
- for(j=1;j<i;j++)
- {
- cin>>k;
- mp[make_pair(i,j)]=k;
- }
- }
- for(auto&h:mp)printf("[%d,%d]: %d\n",h.first.first,h.first.second,h.second);
- }
Advertisement
Add Comment
Please, Sign In to add comment