| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 64584 | 祝家懿 | 水仙花数II | C++ | Wrong Answer | 2 MS | 268 KB | 394 | 2024-01-21 17:02:06 |
#include<bits/stdc++.h> using namespace std; int main() { int n,m; cin>>n>>m; int b,s,g; int r[100],x=0,f=0; for(int i=n; i<m; i++) { b=i/100; s=i/10-i/100*10; g=i%10; if(b*3+s*3+g*3==i) { r[f]=i; x++; cout<<"yes"; return 0; } f++; } if(x==1) { cout<<"no"; } else { for(int i=0; i<100; i++) { cout<<r[i]; } } return 0; }
------Input------
400 600
------Answer-----
407
------Your output-----
801494408010080080469440805081608014944047423870804572808046048080498880-18195148801796660235804468008047520000802283208010080080444600802224804670546012107270408047520060616-1052865983-32767113604545118414201702331272000157752310194010005211029080421440803491207270408010327680105286648832766900041973120801010528664723276648270790