RYIP在线题库
首 页   >   习题练习   >   提交
Problem2336--饥饿的牛

2336: 饥饿的牛

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

【 Description 】



【 Input 】

第一行,整数B(1<=B<=1000)

第2到B+1行,每行两个整数,表示一个区间,较小的端点在前面。

【 Output 】

仅一个整数,表示最多能吃到多少个槽里的食物。

【 Sample Input 】

3
1 3
7 8
3 4

【 Sample Output 】

5

【 Source/Category 】