Submit solution
Points:
1.00 (partial)
Time limit:
3.75s
Memory limit:
256M
Input:
stdin
Output:
stdout
Problem type
Allowed languages
C, C++, Go, Java, Kotlin, Pascal, PyPy, Python, Rust, Scratch
In case the statement didn't load correctly, you can download the statement here: Statement
Lưu ý: Đọc, ghi dữ liệu được thực hiện ở stdin và stdout.
Sample Input
4 4
1 2
2 3
3 4
4 1
Sample Output
7
1 1
2
1 4
1 2
1 1
1 2
1 2
Comments