1957: 山之谷-CCF-GESP2026年3月四级C++

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

Description


Input

Output

输出 1 行,包含 1 个整数c ,表示山谷的数量。

Sample Input Copy

 3 5
 7 6 6 7 9
 6 5 6 7 6
 6 5 7 8 9

Sample Output Copy

3

HINT