Run ID:136167

提交时间:2025-11-09 17:14:56

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