F.A.Qs Home Discuss ProblemSet Status Ranklist Contest 入门OJ LoginRegister 捐赠本站
Notice:1:注册本OJ方式请见https://www.lydsy.com/JudgeOnline/wttl/thread.php?tid=5671 2:请不要在讨论区中发空白主题帖。
Problem 4995. -- [Usaco2017 Feb]Why Did the Cow Cross the Road

4995: [Usaco2017 Feb]Why Did the Cow Cross the Road

Time Limit: 10 Sec  Memory Limit: 256 MB
Submit: 143  Solved: 71
[Submit][Status][Discuss]

Description

Input

Output

Sample Input

5 4
7
8
6
2
9
2 5
4 9
0 3
8 13

Sample Output

3

HINT

Source

Silver

[Submit][Status][Discuss]

HOME Back