Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
73595 jdf25_chenght 水仙花数 C++ 解答错误 0 MS 248 KB 328 2025-11-12 17:45:55

Tests(0/1):


#include<bits/stdc++.h> using namespace std; int main(){ int a,c,b,d; cin >> a ; c = a%10; b = (a/10)%10; a = (a/10)/10%10; if(a*a*a+b*b*b+c*c*c == a){ cout<<a<<"是一个水仙花数"<<endl; }else{ cout<<a<<"不是一个水仙花数"<<endl; } return 0; }


测评信息: