Morass

Node To Far - Input

Mar 24th, 2016
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1.  
  2. int main(void){
  3.     while(scanf("%d",&N),N){
  4.         F(N)scanf("%d%d",&a,&b);//a → b EDGE
  5.         while(scanf("%d%d",&a,&b),a){
  6.             //TODO
  7.             printf("Case %d: %d nodes not reachable from node %d with TTL = %d.\n",++cc,C-S,h,b);
  8.         }
  9.     }
  10.     return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment