Roman2Int

int romanToInt(char * s){ int count = 0; while (*s) { switch(*s) { case 'I': if (*(s+1) == 'V' || *(s+1) == 'X') count -= 1; else count += 1; break; c
posted @ 2020-07-18 22:53  yushimeng  阅读(108)  评论(0编辑  收藏  举报