输出全排列(C++超详细版本,可当dfs模板!!) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int n;int a[11],visit[11];//a[i]为存放结果的数组,最后输出的答…… 题解列表 2023年02月03日 0 点赞 0 评论 507 浏览 评分:9.9
1390————大神老白 摘要: import java.util.Scanner; public class Main { public static void main(String[] args) …… 题解列表 2023年02月04日 0 点赞 0 评论 407 浏览 评分:9.9
特别数的和(C++简单易理解版本) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,i,sum=0,res=0; cin>>n…… 题解列表 2023年02月04日 0 点赞 0 评论 433 浏览 评分:9.9
最多约数问题 摘要:解题思路:很难受这个题我写不出能AC的代码,一部分是因为PYTHON的特性,一部分是我太菜了,下方这个代码是我学习仿照C++栏中CtrlCV工程师老哥的代码,这个思路我是完全想不到,勉强看懂了自己恐怕…… 题解列表 2023年02月04日 0 点赞 0 评论 564 浏览 评分:9.9
密码(简单易解) 摘要:```c #include #include int main(){ int n,i,j,cnt,flag1,flag2,flag3,flag4; char s[100]; sc…… 题解列表 2023年02月04日 0 点赞 0 评论 454 浏览 评分:9.9
基本广度搜索 把队列搞明白 基本全能做 来看 摘要:解题思路:讲一遍可以走的全部走完 理解后特别简单 注意事项:参考代码:#includeusing namespace std;int dx[]={1,1,-1,-1,2,2,-2,-2};int dy…… 题解列表 2023年02月04日 0 点赞 0 评论 479 浏览 评分:9.9
连续出现的字符 摘要:解题思路:利用排序法的思路,进行遍历比较注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int k;char str[1000]; s…… 题解列表 2023年02月04日 0 点赞 0 评论 615 浏览 评分:9.9
选择排序法 摘要:解题思路:一共输入十个数,用数组进行保存,再进行选择排序;注意事项:参考代码:#include<stdio.h>int main(){ int a[10],i,j,t; for(i=0;i…… 题解列表 2023年02月04日 0 点赞 0 评论 487 浏览 评分:9.9
暴力算法c语言 摘要:普通的for循环 #include int isPrime(int n) { int i; int t=sqrt(n); …… 题解列表 2023年02月05日 0 点赞 0 评论 417 浏览 评分:9.9
2798: 整数序列的元素最大跨度值 摘要:解题思路:注意事项:参考代码:a = int(input())n = list(map(int,input().split()))print(max(n) - min(n))…… 题解列表 2023年02月05日 0 点赞 1 评论 543 浏览 评分:9.9