| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 111800 | 梁乃元 | 整数拆分 | C++ | Wrong Answer | 33 | 0 MS | 252 KB | 281 | 2023-11-25 08:12:06 |
# include <iostream> using namespace std ; long long cf ( int x ) { if ( x < 6 ) { return x ; } return cf ( x - 3 ) * 3 ; } int main ( ) { long long n ; cin >> n ; if ( n < 3 ) { cout << 1 << endl ; return 0 ; } cout << cf ( n ) ; return 0 ; }