Run ID:2604
提交时间:2024-01-14 19:01:50
#include <iostream> using namespace std; int main() { int N; while (std::cin >> N) { int count = 0; int number = 0; while (count < N) { number++; if (number % 3 == 0 || number % 5 == 0) { count++; } } std::cout << number << std::endl; } return 0; }