| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 83755 | sh25_huangse | 四叶玫瑰数 | C++ | 通过 | 1 MS | 260 KB | 351 | 2026-02-01 20:43:06 |
#include<bits/stdc++.h> using namespace std; bool f(int n){ int a,b,c,d; a=n%10; b=n/10%10; c=n/100%10; d=n/1000; if(pow(a,4)+pow(b,4)+pow(c,4)+pow(d,4)==n) return true; return false; } int main(){ int u,x; cin>>u>>x; for(int i=u;i<=x;++i){ if(f(i)) cout<<i<<" "; } return 0; }