fork(13) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. char a[100], b[100];
  5. int c, d;
  6. while (4 == scanf("%[^:]:%[^:]:%d:%d", a, b, &c, &d)) {
  7. printf("%s#%s#%d#%d", a, b, c, d);
  8. }
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0s 2252KB
stdin
VS1234567890654327:Rob Fordfirst:001:200
VS1234567890654312:Steven Harper:200:010
stdout
VS1234567890654327#Rob Fordfirst#1#200
VS1234567890654312#Steven Harper#200#10