4 条题解

  • 0
    @ 2023-7-28 2:25:49

    算术题

    #include<iostream>
    #include<cmath>
    using namespace std;
    int main()
    {
        int a = 1;
        while (1) {
            cin >> a;
            if (a == 0) break;
            if (pow(a / 100, 3) + pow(a / 10 % 10, 3) + pow(a % 10, 3) == a) {
                cout << "Yes" << endl;
            }
            else cout << "No" << endl;
        }
    }
    

    信息

    ID
    133
    时间
    1000ms
    内存
    128MiB
    难度
    6
    标签
    (无)
    递交数
    1166
    已通过
    383
    上传者