VO 20 Bài 4 - Đám cưới tại Bắc Ninh

View as PDF

Submit solution

Points: 0.50 (partial)
Time limit: 1.0s
Memory limit: 512M
Input: stdin
Output: stdout

Problem type
Allowed languages
C, C++, Java, Kotlin, Pascal, PyPy, Python, Scratch

Đọc đề ở: https://drive.google.com/file/d/1QWuHH0DjdFhvHHFiI0ZV5E-HCv6MQm9a/view

Sample Input 1

4 4 1
10 0 20 30
1 2 7
1 3 4
2 4 8
3 4 6

Sample Output 1

15 4
2
1 3

Sample Input 2

5 7 3
1 2 -4 -8 16
2 4 10
4 3 7
1 5 2
2 3 1
5 2 10
1 2 5
5 4 3

Sample Output 2

-4 3
0

Comments

Please read the guidelines before commenting.


There are no comments at the moment.