| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 161112 | 格林老师 | 美丽数 | C++ | Accepted | 30 MS | 1044 KB | 363 | 2026-09-30 16:11:08 |
#include <bits/stdc++.h> using namespace std; long long a[100001]; int main() { int cnt=1; for (long long i=1;;i++){ if (i%3==0 || i%5==0){ a[cnt]=i; cnt++; if (cnt>100000) break; } } int N; while(scanf("%d",&N)!=EOF){ printf("%lld\n",a[N]); } return 0; }