fork download
  1. int Decode(char* pStr)
  2. {
  3. int iRetVal = 0;
  4. if (pStr)
  5. {
  6. while(*pStr && *pStr <= '9'&& *pStr>= '0')
  7. {
  8. iRetVal = (iRetVal*10) + (*pStr-'0');
  9. pStr++;
  10. }
  11. }
  12. return iRetVal;
  13. }
  14.  
  15. int main()
  16. {
  17. printf("%d",Decode("7SENSE")+ Decode("6"));
  18.  
  19. return 0;
  20.  
  21. }
Success #stdin #stdout 0s 5428KB
stdin
Standard input is empty
stdout
13