提交时间:2025-02-16 15:24:15

运行 ID: 309275

#include<bits/stdc++.h> using namespace std; int main(){ int i; for(i=1;i<=999;i++){ if(!i%3&&i%10==5||!i%3&&i/10%10==5||!i%3&&i/100%10==5) cout<<i; } return 0; }