Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<string.h>
- int main()
- {
- int n,i,l,j;
- scanf("%d", &n);
- char string[8];
- char s1[7]= {"mumble"};
- for(j=0; j<n; j++)
- {
- scanf("%s", string);
- l=strcmp(string,s1);
- if (l!=0)
- {
- int a=atoi(string);
- if (a!=(j+1))
- {
- printf("not ok");
- return 0;
- }
- }
- }
- printf("ok");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement