2046:输出全排列 摘要:解题思路:注意事项:printf代替cout可避免超时参考代码:#include<iostream>using namespace std;const int N=10;int num[N];bool…… 题解列表 2024年03月04日 0 点赞 0 评论 192 浏览 评分:0.0
最Easy的一集 摘要:这怎么好意思放在中等题???? ``` import java.util.Scanner; public class Main { public static void mai…… 题解列表 2024年03月04日 1 点赞 0 评论 267 浏览 评分:0.0
2798: 整数序列的元素最大跨度值 摘要:注意事项: 给max和min赋值时注意,一定要让这两个值有改动,否则记录的不是输入的值,max够小,min够大参考代码:#include<iostream> using namespace s…… 题解列表 2024年03月04日 0 点赞 0 评论 388 浏览 评分:0.0
编写题解 2832: 第n小的质数 摘要:解题思路:注意事项:参考代码:from math import sqrtimport mathn=int(input())c=[2]num=1while num<=n: for i in ran…… 题解列表 2024年03月04日 0 点赞 0 评论 198 浏览 评分:0.0
图的遍历-DFS深度优先搜索(C++) 摘要:#include<iostream> using namespace std; #define MAX_VERTEX_NUM 20 // 定义最大结点数 int graph[MAX_VERTEX…… 题解列表 2024年03月04日 0 点赞 0 评论 385 浏览 评分:0.0
简单易懂的解题思路 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,a[1000],x,y,k; scanf("%d",&n); for(i=0;…… 题解列表 2024年03月05日 0 点赞 0 评论 322 浏览 评分:0.0
动态规划 最长公共子序列 摘要:解题思路:注意事项:参考代码:a = list(input()) b = list(input()) la = len(a) lb =len(b) dp=[[0 for i in range(…… 题解列表 2024年03月05日 0 点赞 0 评论 405 浏览 评分:0.0
【C语言题解】1025: [编程入门]数组插入处理 摘要:``` #include 定义一个数组来存放数字 int number [15]; int main(){ //清空数组 memset (number,0,sizeof(num…… 题解列表 2024年03月05日 0 点赞 0 评论 172 浏览 评分:0.0
二分查找求方案数 (最大值) 摘要:二分查找 巧克力划分的方案数 (最大值) ```c++ #include using namespace std; const int N = 1e5+10; typedef long …… 题解列表 2024年03月05日 0 点赞 0 评论 201 浏览 评分:0.0
合法C标识符 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s; cin>>s; for(int i=0;…… 题解列表 2024年03月05日 0 点赞 0 评论 162 浏览 评分:0.0