ans

DOZIE 2022-08-14 21:24:19 23 返回题目

#include <bits/stdc++.h> using namespace std; int main() { int n , m , a = 0; cin >> m >> n; for (int i = m ; i <= n ; i++){ int g = i % 10; int s = i / 10 % 10; int b = i / 100 % 10; if (g * g * g + s * s * s + b * b * b == i){ cout << i << " "; a++; } } if (a == 0) cout << "no"; return 0; }

{{ vote && vote.total.up }}