fork download
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main()
  5. {
  6. int n=0;
  7. int i=0;
  8. scanf("%d", &n);
  9. char napis[n][100];
  10. for(i=0; i<n; i++){
  11. scanf("%s", &napis[i]);
  12. }
  13. int j=0;
  14. int k=0;
  15. for(j=0; j<n; j++){
  16. for(k=0; k< (strlen(napis[j]))/2; k++){
  17. printf("%c", napis[j][k]);
  18. }
  19. printf("\n");
  20. }
  21. return 0;
  22. }
  23.  
Success #stdin #stdout 0s 9432KB
stdin
3
pierwszy
lubiec
ktotozrobi
stdout
pier
lub
ktoto