题目描述
If you want to take the ACM elective course, you should learn c programming course first. But now many students have taken it. I asked some students to quit.
If someone have learned the C Programming course,he/she can stay behind. If someone have not learned C programming course, but he thinks he can learn well,he also can stay behind.The students who have not learned C before and think he can't learn well, they must quit.
Now you should tell me how many students take the elective course lastly.
输入
First line input the number (N,integer,no bigger than 60) of the students who have taken the course primitively.
Then the N lines are inout. Every line has there parts,(id,c,l)seperated by a space.id is the id of the students,8 characters.c is an integer number,1--have learnd c,0--have not learned c.l is an integer number,1-he wants to stay,0-he do not want to stay.
输出
you should output how many students take the elective course lastly in a single line.
5
D0654001 1 0
D0654002 1 1
D0654003 0 0
D0654004 0 1
D0654005 0 0
提示
you many need char array:
char id[9];