Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
138533 hjx4333333 美丽数 C++ Time Limit Exceeded 1000 MS 652 KB 309 2025-11-26 21:41:43

Tests(0/1):


Code:

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