1 solutions

  • 1
    @ 2025-12-3 16:15:31

    C++ :

    #include<bits/stdc++.h>
    using namespace std;
    long long a;
    int main()
    {
    	for(int s=100;s<=999;s++)
    	{
    		if(s==int(pow(s%10,3)+pow(s/10%10,3)+pow(s/100,3)))cout<<s<<endl;
    	}
    }
    
    • @ 2026-2-24 21:10:15

      其实输出153\n370\n371\n407\n就行了(要加双引号)

  • 1

Information

ID
846
Time
1000ms
Memory
128MiB
Difficulty
10
Tags
(None)
# Submissions
7
Accepted
4
Uploaded By