Submit solution
Points:
1.50 (partial)
Time limit:
1.0s
Memory limit:
256M
Input:
stdin
Output:
stdout
Problem type
Allowed languages
C, C++, Go, Java, Kotlin, Pascal, PyPy, Python, Rust, Scratch
Đọc đề ở: https://drive.google.com/file/d/1QWuHH0DjdFhvHHFiI0ZV5E-HCv6MQm9a/view
Sample Input 1
3 100
0 7
-4 2
-9 20
Sample Output 1
0
15 21
15 21
15 21
Sample Input 2
4 4
1 4
2 3
3 2
4 1
Sample Output 2
8
2 3
2 3
3 2
3 2
Comments