F.A.Qs Home Discuss ProblemSet Status Ranklist Contest 入门OJ LoginRegister 捐赠本站
Notice:本站提供各级各类比赛备战资源(Noip提高组及以下),有意者请联系Lydsy2012@163.com,仅限教师及家长用户。
Problem 3956. -- Count

3956: Count

Time Limit: 10 Sec  Memory Limit: 512 MB
Submit: 848  Solved: 324
[Submit][Status][Discuss]

Description

Input

Output

Sample Input

3 2 0
2 1 2
1 1
1 3

Sample Output

0
3

HINT

M,N<=3*10^5,Ai<=10^9


Source

CH Round#64 MFOI杯水题欢乐赛day1 By Gromah

[Submit][Status][Discuss]

HOME Back