Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int n,q,i,j,count=0;
- char str[1000];
- char qurey[1000];
- scanf("%d",&n);
- for(i=0; i<n;i++)
- {
- scanf("%s",&str[i]);
- }
- scanf("%d",&q);
- for(i=0; i<q;i++)
- {
- scanf("%s",&qurey[i]);
- }
- for(j=0;j<n;j++)
- {
- if(strcmp(qurey[i],str[i]))
- {
- count++;
- }
- printf("%d\n",count++);
- }
- }
Add Comment
Please, Sign In to add comment