蓝桥杯算法提高VIP-复数求和 题解(c++我有重大发现!!!!!) 摘要:解题思路:这里更正一下啊,这里的链表在c++中也叫结构体。怪不得我在题目标签里找不到结构体!直接上程序!注意事项:无。参考代码:#include<bits/stdc++.h>using namespa…… 题解列表 2022年05月12日 0 点赞 0 评论 299 浏览 评分:0.0
蓝桥杯算法提高VIP-数组输出 题解(c++ 哎!没办法) 摘要:解题思路:错的次数太多了,我也无语了,直接理解吧!呵呵!上代码!注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int a[5][5],x…… 题解列表 2022年05月12日 0 点赞 0 评论 319 浏览 评分:0.0
蓝桥杯算法提高VIP-格式化数据输出 题解(c++ 坑人题目) 摘要:解题思路:坑人的格式化输出!!!!!害得我错了好几次!!!上题解!注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int main(){ …… 题解列表 2022年05月12日 0 点赞 0 评论 305 浏览 评分:0.0
求矩阵的两对角线上的元素之和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long n,a[15][15],s,t;int main(){ cin>…… 题解列表 2022年05月12日 0 点赞 0 评论 356 浏览 评分:0.0
【1】字符串排序听都没听过 摘要:解题思路:两种输入的方法,就是不知道可以用map吗注意事项:参考代码:#a=[]#for i in range(3):# a.append(input())a,b,c=input(),input…… 题解列表 2022年05月12日 0 点赞 0 评论 400 浏览 评分:0.0
知道了怎么索引列表元素的下标 摘要:解题思路:注意事项:gan开始写的之前写过的选择排序的算法,和题目要求不同 ,这题学会了用列表点index索引列表的下标,学会互换位置,找到最大和最小值,和队首和队尾的互换位置挺好的还会用简洁的写法很…… 题解列表 2022年05月12日 0 点赞 0 评论 378 浏览 评分:0.0
C++处理数字位数与输出 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b[5],c; cin >> a; if (a / 100…… 题解列表 2022年05月12日 0 点赞 0 评论 367 浏览 评分:0.0
蓝桥杯算法提高VIP-删除数组中的0元素 (Java代码) 摘要:解题思路:把不等于0的存入数组(感觉直接输出也行,不过Java也不在乎什么内存)注意事项:参考代码:import java.util.Scanner; public class Main { …… 题解列表 2022年05月12日 0 点赞 0 评论 456 浏览 评分:0.0
欧几里得法求最大公倍数,最小公约数 摘要:解题思路:注意事项:参考代码://辗转相除法 #include<iostream>using namespace std;int gcd(int a,int b){ if(a%b==0) retur…… 题解列表 2022年05月12日 0 点赞 0 评论 379 浏览 评分:0.0
Python解决字符统计问题——字典是个好东西 摘要:1. 首先输入: ```python a=input() ``` 然后把输入的东西循环处理: ```python d={} for i in a: d[i]=d.get(i,0…… 题解列表 2022年05月12日 0 点赞 0 评论 508 浏览 评分:0.0