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 types
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.



  • 2
    skyvn97  commented on March 4, 2025, 3:57 p.m.

    Các bạn xem đề bài ở đây nhé: https://oj.vnoi.info/problem/pvh5_a


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

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


    • 2
      thanhdongt000  commented on March 19, 2025, 3:25 p.m.

      là sao bạn


      • 2
        ShadowShark  commented on March 21, 2025, 12:26 p.m. edited

        Chỉ một vài người "đặc biệt" ms bt đc điều này thôi =)))


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

    debaidienro