Run ID:115102
提交时间:2025-03-29 11:36:04
#include<bits/stdc++.h> using namespace std; int main(){ int m,n; cin>>m>>n; for(int k=1;k<=9;k++){ for(int j=0;j<=9;j++){ for(int i=0;i<=9;i++){ if(k*100+j*10+i==k*k*k+i*i*i+j*j*j){ cout<<k<<j<<i; } else{ cout<<"no"; return 0; } } } } }