求矩阵的两对角线上的元素之和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long n,a[15][15],s,t;int main(){ cin>…… 题解列表 2022年05月12日 0 点赞 0 评论 300 浏览 评分:0.0
【1】字符串排序听都没听过 摘要:解题思路:两种输入的方法,就是不知道可以用map吗注意事项:参考代码:#a=[]#for i in range(3):# a.append(input())a,b,c=input(),input…… 题解列表 2022年05月12日 0 点赞 0 评论 349 浏览 评分:0.0
知道了怎么索引列表元素的下标 摘要:解题思路:注意事项:gan开始写的之前写过的选择排序的算法,和题目要求不同 ,这题学会了用列表点index索引列表的下标,学会互换位置,找到最大和最小值,和队首和队尾的互换位置挺好的还会用简洁的写法很…… 题解列表 2022年05月12日 0 点赞 0 评论 311 浏览 评分: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 评论 315 浏览 评分:0.0
蓝桥杯算法提高VIP-删除数组中的0元素 (Java代码) 摘要:解题思路:把不等于0的存入数组(感觉直接输出也行,不过Java也不在乎什么内存)注意事项:参考代码:import java.util.Scanner; public class Main { …… 题解列表 2022年05月12日 0 点赞 0 评论 338 浏览 评分:0.0
欧几里得法求最大公倍数,最小公约数 摘要:解题思路:注意事项:参考代码://辗转相除法 #include<iostream>using namespace std;int gcd(int a,int b){ if(a%b==0) retur…… 题解列表 2022年05月12日 0 点赞 0 评论 326 浏览 评分:0.0
Python解决字符统计问题——字典是个好东西 摘要:1. 首先输入: ```python a=input() ``` 然后把输入的东西循环处理: ```python d={} for i in a: d[i]=d.get(i,0…… 题解列表 2022年05月12日 0 点赞 0 评论 445 浏览 评分:0.0
1055 二级C语言转换 摘要:```c #include int main(){ int n; scanf("%d",&n); printf("%o",n); return 0; } ``````c …… 题解列表 2022年05月12日 0 点赞 0 评论 346 浏览 评分:0.0
九九乘法表 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ for (int i = 1; i …… 题解列表 2022年05月12日 0 点赞 0 评论 403 浏览 评分:0.0
宏定义和函数找最大值 摘要:解题思路:用三目运算符非常简单注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;#define max(a,b,c) (…… 题解列表 2022年05月12日 0 点赞 0 评论 322 浏览 评分:0.0