| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 138538 | hjx4333333 | 美丽数 | C++ | Accepted | 27 MS | 660 KB | 275 | 2025-11-26 21:48:40 |
#include <iostream> using namespace std; int main() { int j; int n; int a[100005]; j=1; for (int i=1;;i++) { if (i%3==0 or i%5==0) a[j++]=i; if (j>100001) break; } while (scanf("%d",&n)!=EOF) printf("%d\n",a[n]); return 0; }