int64_t GetHighest (int64_t num) //原谅我的渣英文 { if(num < 0){ num *= -1; } while (num >= 10) { num /= 10; } return num; }
方法来源