| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 129706 | 翁jq | 美丽数 | C++ | Time Limit Exceeded | 1000 MS | 272 KB | 294 | 2025-09-02 15:54:16 |
#include <bits/stdc++.h> using namespace std; int main() { int n; while(cin>>n){ if(n == 1 ){ cout<<3<<endl; } else{ if (n % 2 == 0){ cout<<n * 2 + 1<<endl; } else{ cout<<n*2<<endl; } } } return 0; } // 1 1 // 2 5 // 3 6 // 4 9 // 5 10