sivan_iut

Untitled

Feb 27th, 2020
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.  
  5. int n,i;
  6. scanf("%d",&n);
  7. char sivan[1000000];
  8. for(i=0;i<n;i++)
  9. {
  10.     scanf("%c",&sivan[i]);
  11.     if(sivan[i]=='z')
  12.         printf("0 ");
  13.     if(sivan[i]=='n')
  14.         printf("1 ");
  15. }
  16. return 0;
  17.     }
Add Comment
Please, Sign In to add comment