#Lutece1256. 昊昊爱运动
昊昊爱运动
Migrated from Lutece 1256 昊昊爱运动
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
昊昊喜欢运动
他天内会参加种运动(每种运动用一个的整数表示)
舍友有个问题
问昊昊第天到第天参加了多少种不同的运动
Input
输入两个数, (, );
输入个数表示在第i天昊昊做了第类型的运动;
输入一个数();
输入行 每行两个数 , ();
Output
一共行
每一行输出一个数 表示昊昊在第天到第天一共做了多少种活动
Samples
5 3
1 2 3 2 2
3
1 4
2 4
1 5
3
2
3
Resources
第七届ACM趣味程序设计竞赛第二场(正式赛)