fork download
  1. #include<stdio.h>
  2. #define LEN 40
  3.  
  4. int main()
  5. {
  6. int c,len=0;
  7. for(int i=0;(c=getchar()) != EOF;i++)
  8. {
  9. len=i;
  10. if(len>LEN)
  11. putchar(c);
  12. if(c=='\n')
  13. i=-1;
  14. }
  15. return 0;
  16. }
Success #stdin #stdout 0s 10320KB
stdin
Standard input is empty
stdout
Standard output is empty