| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 112226 | 陈星云 | 整数拆分 | C++ | Wrong Answer | 66 | 0 MS | 256 KB | 254 | 2023-11-25 11:03:25 |
#include<bits/stdc++.h> using namespace std; int n,ans; int main() { cin>>n; if(n<=2) {cout<<1;return 0;} if(n==3) {cout<<2;return 0;} ans=1; for(int i=1;i<n/3;i++) ans*=n/3; if(n%3==2) ans*=6; else ans*=(n/3+n%3); cout<<ans<<endl; }