fork(4) download
  1. i,j;f(s,l,k)char*s;int*l;{for(i=j=0;i<k;){write(1,s+j,l[i]);puts("");j+=l[i++];}}
  2. main(){
  3. int l[]={3,2,3};
  4. f("Hello, World!",l,3);
  5. int ll[]={2,1,3};
  6. f("abcdefghijk",ll,3);
  7. int lll[]={4,1};
  8. f("Code Golf",lll,2);
  9. int llll[]={3};
  10. f("Ayyy",llll,1);
  11. int lllll[]={2,2,2,7,4};
  12. f("lexicographically",lllll,5);
  13. }
Success #stdin #stdout 0s 2168KB
stdin
Standard input is empty
stdout
Hello, WabcdefCode Ayylexicographically