| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 161106 | 格林老师 | 美丽数 | C++ | Time Limit Exceeded | 1000 MS | 1040 KB | 357 | 2026-09-30 15:56:23 |
#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(cin>>N){ cout<<a[N]<<endl; } return 0; }