fork download
  1. #!/bin/bash
  2.  
  3. code="s;[0-9]|$;0&;;`seq 0 9 | sed -nE 'x;G;s;(.+)\n(.+);s,x\1,\2,\;;p'`"
  4.  
  5. echo x | (sed -u 'h;:s;n;x;G;s;\n;;;bs' | tee /dev/stderr) 2>&0 \
  6. | sed -uE ":s;s;x{10};y;g;$code;y;y;x;;/x/bs"
  7.  
Time limit exceeded #stdin #stdout 5s 4540KB
stdin
Standard input is empty
stdout
1
2
3
5
8
13
21
34
55
89
144
233
377
610
987
1597
2584
4181
6765
10946
17711
28657
46368
75025
121393