摘要:
class Solution { public: int isWhat(char a) { if (a == 'I') { return 1; } else if (a == 'V') { return 5; } else if (a == 'X') { return 10; } else if ( 阅读全文
摘要:
class Solution { public: bool isPalindrome(int x) { //复制X的值 int y = x; //先去除负数和个位数的判断 if(y<0){ return false; } long text = 0; while(y>0){ text = text* 阅读全文