Run ID:136170
提交时间:2025-11-09 17:16:52
#include <bits/stdc++.h> using namespace std; int a[100005]; int main() { cin.tie(0); int c = 0; for(int i = 1;; ++i){ if(i % 3 == 0 || i % 5 == 0) a[++c]=i; if(c > 100000) break; } int n; while(cin >> n){ cout << a[n] << '\n'; } return 0; }