Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
125756 王金檐 水仙花数II C++ Wrong Answer 0 MS 272 KB 283 2025-07-15 14:49:04

Tests(0/10):


Code:

#include<iostream> using namespace std; int main(){ int n,m; cin>>m>>n; int s=0; int p=0; for(int i=m;i<=n;i++){ int k=i; while(k>0){ s+=s*10+k%10; k/=10; } if(i*10==s){ cout<<i<<" "; p++; } } if(p==0){ cout<<"no"; } return 0; }


Run Info:

------Input------
400 600
------Answer-----
407
------Your output-----
no