F.A.Qs Home Discuss ProblemSet Status Ranklist Contest 入门OJ LoginRegister 捐赠本站
Notice:1:五月份月赛定于5.27日12:30--17:30,欢迎大家来玩! 2:关于OJ的注册可看https://www.lydsy.com/JudgeOnline/wttl/thread.php?tid=5671
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: 89  Solved: 50
[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