题解列表

筛选

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

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

字符串问题 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>int main(){ using namespace std; char a[255]; int ……

You are my brother (C语言代码)

摘要:解题思路:贴个代码 不想写注释了注意事项:参考代码:#include<stdio.h>typedef struct node{ int a; int b;} L;L A[1005];int main(……

简单方法(C++代码)

摘要:解题思路: c++中的容器set 自动排序+去重 ,完美符合题意,类似的还有很多容器,可以去了解一下注意事项:没啥注意的,照着写就能AC参考代码:#include<bits/stdc++.h>usin……

采药 (C语言代码)

摘要:解题思路:虽然超时了,不过还想贴一下昂递归思路来做的把所有可能性算一遍,暴力了一点注意事项:参考代码:#include<stdio.h>#include<string.h>struct node{ i……

采药 (C语言代码)

摘要:解题思路:贴段代码注意事项:参考代码:#include<stdio.h>#include<string.h>int A[150],B[150],C[1500];int main(){ int N,M,……