fork download
  1. #include <stdio.h>
  2. int main(void) {
  3. char x;
  4. int line[4];
  5. for (int i=0; i<=4;)
  6. {
  7. if (((x=getchar()) != '\n'))
  8. line[i]=(getchar());
  9. else
  10. i++;
  11. }
  12. printf("%d", line[0]);
  13. return 0;
  14. }
  15.  
Time limit exceeded #stdin #stdout 5s 4520KB
stdin
the value is 24
the value
the longest line here
none
stdout
Standard output is empty