leetCode507完美数

水题一枚

class Solution {
public:
    bool checkPerfectNumber(int num) {
        int sum = 1;
        for(int i = 2;i

 

你可能感兴趣的:(leetcode)