Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<string.h>
- char a[100000][10000];
- int main()
- {
- long long i=0, j, k, count=1, temp;
- while(scanf("%[^\n]%*c", a[i])!=EOF){
- if(i==0){
- i++;
- continue;
- }
- for(k=0;k<i;k++){
- if(strcmp(a[i],a[k])==0){
- temp=0;
- break;
- }
- else
- temp=1;
- }
- if(temp==1)
- count++;
- i++;
- }
- printf("%lld\n", count);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment