数组模拟计算,嘎嘎猛,思维难度低, 摘要:怎么模拟进位呢? 比如有一个数组a[100] , a[1]表示个位数上的数值,a[2]表示十位数的数值,以此类推。 初始化数组中每个元素为0,再给a[1]赋值。假设a[1]=3,定义一个int型变…… 题解列表 2023年06月27日 0 点赞 1 评论 382 浏览 评分:9.9
数列排序(超时了,啊!!!) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int n; cin>>n;int a[n][9], b…… 题解列表 2023年06月28日 0 点赞 0 评论 402 浏览 评分:9.9
去掉双斜杠注释(时间复杂度大点) 摘要:解题思路:注意事项:if(s[j][0]=='/'&&s[j][1]=='/') continue;这个要注意啊,开头双斜杠不换行,要不是提交就是错。参考代码:#i…… 题解列表 2023年06月28日 0 点赞 0 评论 296 浏览 评分:9.9
逐步比较法求得三个数中最大值 摘要:解题思路:一共存在三个数,若要求得最大值,可以先比C和B,然后将C与B中较大的值去与A比较。就可以得出最大的一个数啦!max(b,c)就是B和C中较大的数max(a,max(b,c))就是A和B与C中…… 题解列表 2023年06月28日 0 点赞 0 评论 330 浏览 评分:9.9
明明的随机数(正规) 摘要:解题思路:把相等于0,然后在排,在定义个数组,把不等于0的复制其中,然后输出.......注意事项:无参考代码:#include<iostream>#include<algorithm>using n…… 题解列表 2023年06月28日 0 点赞 0 评论 250 浏览 评分:9.9
蛇行矩阵(简简单单) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int main(){ int n; cin>>…… 题解列表 2023年06月28日 0 点赞 0 评论 334 浏览 评分:9.9
蓝桥杯算法提高VIP-阮小二买彩票(非Next_permutation,大一菜鸡勿喷) 摘要:解题思路:字符串读取,化数组后排序,dfs求解,并标记答案。注意事项:记得考虑前导0的情况参考代码:#include<stdio.h>#include<string.h>#include<stdlib…… 题解列表 2023年06月30日 0 点赞 0 评论 355 浏览 评分:9.9
编写题解 2814: 正常血压c++ 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c,d,sum=0,sum1=0,aa…… 题解列表 2023年07月01日 0 点赞 0 评论 335 浏览 评分:9.9
感谢支持,谢谢你们的支持 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,s=0,t=0; cin>>n; for(in…… 题解列表 2023年07月01日 0 点赞 0 评论 384 浏览 评分:9.9
偶数求和利用数组解决 摘要:解题思路:利用数组的思路,通过索引注意事项:参考代码:#include <stdio.h> int main() { int n, m,i,j; while (scanf("%d…… 题解列表 2023年07月01日 0 点赞 0 评论 226 浏览 评分:9.9