PVHOI 5 bài 2 - Quên logout thì làm sao? (70 điểm)

View as PDF

Submit solution


Points: 1.50 (partial)
Time limit: 3.0s
Memory limit: 512M
Input: doublesea.inp
Output: doublesea.out

Author:
Problem source:
PVHOI 5
Problem type
Allowed languages
C, C++, Go, Java, Kotlin, Pascal, PyPy, Python, Rust, Scratch

Input

Output

Sample Input 1

12
1 2
2 3
3 4
4 5
5 6
6 7
7 8
4 9
9 10
2 11
6 12
2
3 6
1 1
8 2
10 3
1 3 5 7 9 11
2 6
1 5
8 9
2 4 6 8 10 12

Sample Output 1

1 3 3 2 3 1 
1 1 1 2 1 1

Comments

Please read the guidelines before commenting.



  • 0
    huyjav  commented on Dec. 25, 2024, 8:22 a.m.

    cụ thể là cô bé tỉnh Hải Dương :))


  • -1
    hungnguyenmanh2k8  commented on Dec. 21, 2024, 3:44 a.m.

    debaidienro