| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 136177 | 蔡胤泽 | 美丽数 | C++ | Time Limit Exceeded | 1000 MS | 652 KB | 297 | 2025-11-09 17:22:42 |
#include <iostream> using namespace std; int a[100005]; int main() { int c = 0; for(int i = 1;;++i) { if(i % 3 == 0||i % 5 == 0) { a[++c] = i; } if(c > 100000) { break; } } int n; while(cin >> n) { cout << a[n] << endl; } return 0; }