Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
8092 刘芃伽 水仙花数II C++ Accepted 0 MS 264 KB 329 2025-06-14 09:47:57

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>b; bool f=false; for(int i=a;i<=b;i++){ if(pow(i%10,3)+pow(i/10%10,3)+pow(i/100,3)==i){ f=true; cout<<i<<' '; } } if(f==false){ cout<<"no"<<endl; } return 0; }