| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 45987 | Jerry | 四叶玫瑰数 | C++ | Compile Error | 0 MS | 0 KB | 324 | 2024-04-21 19:37:05 |
#include<iostream> using namespace std; int f(int n){ int a=q(n%10); int b=q((n/10)%10); int c=q((n/100)%10); int d=q((n/1000)%10); if((a+b+c+d)==n) return 1; else return 0; } int q(int x){ return x*x*x*x; } int main(){ int a,b; cin>>a>>b; for (int i=a;i<=b;i++){ if(f(i)) cout<<i<<endl; } }