fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a, b, c;
  5. int res = scanf("%d.%d.%d", &a, &b, &c);
  6. printf("%d.%d.%d\n%d\n", a, b, c, res);
  7. return 0;
  8. }
  9.  
Success #stdin #stdout 0s 9424KB
stdin
1..1.....1111
stdout
1.0.0
1