Run ID:129704

提交时间:2025-09-02 15:39:54

#include <bits/stdc++.h> using namespace std; int main() { int n; while(cin>>n){ int cnt = 0; int i = 1; while (1){ if (n > 10000){ return; } if (i % 3 == 0 || i % 5 == 0){ cnt++; } if (cnt == n ){ cout<<i<<endl; break; } i ++; } } return 0; }