| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 74137 | Py自测 | 美丽数 | C++ | Time Limit Exceeded | 1000 MS | 660 KB | 370 | 2024-05-23 10:41:27 |
#include <iostream> using namespace std; int main() { int n; int a[100005]; int c=1;//计数 for(int i = 1;;i++) { if(i%3==0||i%5==0) { a[c++]=i; } if(c>100001) { break; } } while(cin >> n){ cout << a[n] << '\n'; } return 0; }