递增三元组——二分(c++) 摘要: 转了一圈发现没几个用二分的.... 思路很简单,我们先确定中间的数,b[i],然后分别二分查找比b[i]小的以及比b[i]大的数即可。我们可以在比b[i]小的数中,找到最大的数,那么比他小的数,…… 题解列表 2022年04月08日 0 点赞 0 评论 741 浏览 评分:9.9
字符串的修改 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int dp[1005][1005];char A[205],B[205];int …… 题解列表 2022年04月08日 0 点赞 0 评论 510 浏览 评分:9.9
全球变暖BFS 摘要: 宽搜解法 #include #include #include using namespace std; const int N …… 题解列表 2022年04月08日 0 点赞 0 评论 606 浏览 评分:9.9
编写题解 1058: 二级C语言-求偶数和 摘要:解题思路:优化步骤,在输入的时候同时判断是否为偶数注意事项:注意数组定义的时间和位置参考代码:#include <stdio.h>int main(){ int k,x = 0; scanf("%d"…… 题解列表 2022年04月08日 0 点赞 0 评论 745 浏览 评分:9.9
优质题解 3种方法+从简到繁 完成 排列 摘要:解题思路:1.暴力法:使用一个数组存输入的4个数,每次去掉其中一个;然后对于剩余3个数,使用2个for循环选择前2个, 最后一个则等于6-i-j-k (考虑互不相等,i、j、k 最大为 3、2、1 …… 题解列表 2022年04月08日 0 点赞 1 评论 2403 浏览 评分:9.9
自定义函数处理素数易懂 摘要:解题思路:1,2是特别的数单独处理,然后再对其他数进行处理注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,su…… 题解列表 2022年04月08日 0 点赞 0 评论 695 浏览 评分:9.9
简单的字符串-题解c语言 摘要:#include <stdio.h> int main (void){ int count=0,n;// count 是循环进行的次数,n是需要进行的次数 int i,t=1; // i 是…… 题解列表 2022年04月08日 0 点赞 1 评论 690 浏览 评分:9.9
大等于n的最小完全平方数 摘要: #include using namespace std; int main() { int n; cin>>n; for(i…… 题解列表 2022年04月08日 0 点赞 0 评论 796 浏览 评分:9.9
节省时间的解决方法 摘要:解题思路:注意事项:参考代码:def jisuan(x): for i in range(2,x): for j in range(2,((i//2)+1)): …… 题解列表 2022年04月08日 0 点赞 0 评论 567 浏览 评分:9.9
题目 2570: 蓝桥杯2020年第十一届省赛真题-成绩分析 摘要:代码:n=int(input())li=[]s=0for i in range(n): #输入n个整数,将每次输入的数放在一个列表 a=int(input()) li.append(a) …… 题解列表 2022年04月08日 0 点赞 0 评论 616 浏览 评分:9.9