#include<bits/stdc++.h> using namespace std; int n,i=1,s; int main(){ while(i<=500){ if(i%3==2&&i%5==3&&i%7==2) cout<<i<<endl; i++; } return 0; } /************************************************************** Problem: 1021 User: zhangziang Language: C++ Result: Accepted Time:4 ms Memory:2072 kb ****************************************************************/