题解列表

筛选

1264: 防御导弹

摘要:```cpp #include using namespace std; int main() { int a,num[20],cnt=0,dp[20],ans=-1; w……

奇数求和,差值版本

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){   int m,n,sum=0,i;   int sum1=0,sum2=0;   0<=m<=n<=300;……

最多约数问题

摘要:解题思路:很难受这个题我写不出能AC的代码,一部分是因为PYTHON的特性,一部分是我太菜了,下方这个代码是我学习仿照C++栏中CtrlCV工程师老哥的代码,这个思路我是完全想不到,勉强看懂了自己恐怕……

密码(简单易解)

摘要:```c #include #include int main(){ int n,i,j,cnt,flag1,flag2,flag3,flag4; char s[100]; sc……

连续出现的字符

摘要:解题思路:利用排序法的思路,进行遍历比较注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int k;char str[1000]; s……

选择排序法

摘要:解题思路:一共输入十个数,用数组进行保存,再进行选择排序;注意事项:参考代码:#include<stdio.h>int main(){    int a[10],i,j,t;    for(i=0;i……