题解列表

筛选

字符串问题 (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,……
优质题解

做幻方 (C++代码)

摘要:解题思路:    一,因为要多组数据,除了动态分配内存,可以用STL中的vector容器来实现             二,(百度百科)传统魔方阵的排列规律如下:        ⑴将1放在第一行中间一……