F.A.Qs Home Discuss ProblemSet Status Ranklist Contest 入门OJ LoginRegister 捐赠本站
Problem 3956. -- Count

3956: Count

Time Limit: 10 Sec  Memory Limit: 512 MB
Submit: 820  Solved: 317
[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