Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
138502 hjx4333 美丽数 C++ Time Limit Exceeded 1000 MS 256 KB 265 2025-11-25 17:53:14

Tests(0/1):


Code:

#include <bits/stdc++.h> using namespace std; int main() { long i,j,k,n,s; while (scanf("%d",&n)!=EOF) { s=0; j=3; while (s!=n) { if (j%3==0 or j%5==0) s++; if (s==n) break; j++; } cout<<j<<endl; } return 0; }