Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while(scanf("%d ",&N),N){
- //clear graph
- string s;
- int A,B;
- while(666){
- getline(cin,s);
- istringstream ss(s);
- ss>>A;
- if(!A)break;
- while(ss>>B)//init edges
- }
- //proceed algorithm
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement