题解列表

筛选

The 3n + 1 problem (C语言代码)

摘要:解题思路:注意事项:相信很多人踩雷在了  当输入的n>m的情况上了参考代码:#include <stdio.h>#include <string.h>int main(){    int n,m,i,……

开心的金明 (C++代码)

摘要:解题思路:注意事项:     直接递归会超时,用上状态转移参考代码:#include<bits/stdc++.h>using namespace std;const  int N = 25;int v……