Advertisement
Guest User

Untitled

a guest
Sep 20th, 2014
1,354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <cstdio>
  2. using namespace std;
  3.  
  4. int t;
  5. int n;
  6.  
  7. int main()
  8. {
  9.     scanf("%d", &t);
  10.     for (int tc = 1; tc <= t; tc++) {
  11.         scanf("%d", &n);
  12.         for (int i = 0; i < n - 1; i++) {
  13.             int a, b; scanf("%d %d", &a, &b);
  14.         }
  15.         printf("Case #%d: %d\n", tc, n == 1? 1: 2);
  16.     }
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement