cf/mirror

Tests for problem D

CF
1278E2200· master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
6
1 2
1 3
3 4
3 5
2 6
Output
9 12
7 10
3 11
1 5
2 4
6 8
Sample 2of 2
Input
1
Output
1 2
1278E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…