Advertisement
Georgiy1108

Untitled

Dec 19th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. struct Way
  6. {
  7.     int to, w;
  8.     Way(int _to, int _w)
  9.     {
  10.         to = _to;
  11.         w = _w;
  12.     }
  13. };
  14.  
  15. operator<(const Way left, const Way right)
  16. {
  17.     return left.w < right.w;
  18. }
  19.  
  20. int main()
  21. {
  22.     ios::sync_with_stdio(0);
  23.     cin.tie(0);
  24.     set<Way> ways;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement