提交时间:2026-02-01 20:43:06

运行 ID: 83755

#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; }