5189: B3936 [语言月赛 202402] 小朋友的身高(入门)

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

Input

Output

Sample Input Copy

3 2 2
1 2 3
2 2 2
4 3 1
1 1 3
2 2 3

Sample Output Copy

-2
1

HINT