Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdio>
- using namespace std;
- int t;
- int n;
- int main()
- {
- scanf("%d", &t);
- for (int tc = 1; tc <= t; tc++) {
- scanf("%d", &n);
- for (int i = 0; i < n - 1; i++) {
- int a, b; scanf("%d %d", &a, &b);
- }
- printf("Case #%d: %d\n", tc, n == 1? 1: 2);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement