提交时间:2023-12-10 10:08:20
运行 ID: 46620
#include<iostream> using namespace std; int main() { int m,n; cin >> m >> n; for(int i = m;i <= n;i++) { int a = i/100; int b = i/10 % 10; int c = i%10; if(a*3 + b*3 + c*3 == i) { cout << i << endl; } } }