fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. char a[100];
  6. int b;
  7. scanf("%[^:]:%d",a,&b);
  8. printf("%s %d",a,b);
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0s 9432KB
stdin
a0r:20
stdout
a0r 20