1 solutions

  • -1
    @ 2026-1-8 22:39:36

    #include <bits/stdc++.h> using namespace std;

    int main() { for (int i = 100; i <= 999; i++) { if ((i / 100) * (i / 100) * (i / 100) + (i / 10 % 10) * (i / 10 % 10) * (i / 10 % 10) + (i % 10) * (i % 10) * (i % 10) == i) { cout << i << " "; } }

    return 0;
    

    }

    • 1

    Information

    ID
    231
    Time
    1000ms
    Memory
    64MiB
    Difficulty
    1
    Tags
    # Submissions
    86
    Accepted
    65
    Uploaded By