| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 72856 | Py自测 | 美丽数 | C++ | Time Limit Exceeded | 1000 MS | 1180 KB | 324 | 2024-05-13 14:01:22 |
#include<bits/stdc++.h> using namespace std; int main() { vector <int> a; a.push_back(0); for(int i = 1; i <= 214286; ++i) { if (i % 3 == 0 || i % 5 == 0) a.push_back(i); } int n; while(cin >> n) { cout << a[n] << '\n'; } return 0; }