Run ID:138494

提交时间:2025-11-25 15:15:09

#include <bits/stdc++.h> using namespace std; int main() { int j,n,s; while (cin>>n) { s=0; j=3; while (s!=n) { if (j%3==0 or j%5==0) s++; j++; } cout<<j-1<<endl; } return 0; }