Advertisement
Morass

Input

Jan 18th, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.22 KB | None | 0 0
  1. while(scanf("%d ",&N),N){
  2.     //clear graph
  3.     string s;
  4.     int A,B;
  5.     while(666){
  6.         getline(cin,s);
  7.         istringstream ss(s);
  8.         ss>>A;
  9.         if(!A)break;
  10.         while(ss>>B)//init edges
  11.     }
  12.     //proceed algorithm
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement