矩阵乘法(二维数组)(简单易懂) 摘要:解题思路:for (int x = 0; x < m; x++) {:这是一个循环,它遍历了矩阵A的第i行和矩阵B的第j列的每个元素。x是一个循环变量,从0开始逐渐增加,直到小于m(矩阵A的列数或矩阵…… 题解列表 2023年11月11日 0 点赞 0 评论 509 浏览 评分:6.0
蓝桥杯算法提高VIP-笨小猴(python) 摘要:解题思路:注意事项:参考代码:try: def prime(x): # 判断x是否为质数 for i in range(1, x): if x % i ==…… 题解列表 2023年11月11日 0 点赞 0 评论 505 浏览 评分:0.0
【Python】如何一行解决这道题 摘要:解题思路:普通的思路注意事项:没什么注意的参考代码:print(sum(list(map(int, [i*'2' for i in range(1,int(input())+1)]))…… 题解列表 2023年11月12日 1 点赞 4 评论 816 浏览 评分:10.0
题解 [编程基础]输入输出练习之输出图案 摘要:解题思路:首先用“char”类型定义一个变量,再输入,再输出就可以了注意事项:要用char类型定义变量参考代码:#include <bits/stdc++.h>using namespace std;…… 题解列表 2023年11月12日 0 点赞 0 评论 469 浏览 评分:9.9
有规律的数列求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i; float a=1.0,b=2.0,j=b/a,t,sum=0; scanf…… 题解列表 2023年11月12日 0 点赞 0 评论 239 浏览 评分:0.0
自由下落的距离计算 摘要:解题思路:每次经过的路程均为高度的3倍注意事项:参考代码:m,n=map(int,input().split())c=0for i in range(1,n+1): m=m/2 c+=3*…… 题解列表 2023年11月12日 0 点赞 0 评论 391 浏览 评分:0.0
编程入门自由下落的距离计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,N; float M,H=0,S=0; scanf("%f %d",&M,&N…… 题解列表 2023年11月12日 0 点赞 0 评论 244 浏览 评分:0.0
折半查找! 摘要:#include <stdio.h>int main(){ int a[1000],b[1000]; int left,right,mid; int n,k,x,i;scanf("%d%d"…… 题解列表 2023年11月12日 0 点赞 0 评论 647 浏览 评分:10.0
最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b; scanf("%d %d",&a,&b); int m =(a<b?a:b); while …… 题解列表 2023年11月12日 0 点赞 0 评论 255 浏览 评分:0.0
求最大公约数最小公倍数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,m,n,i,j; scanf("%d %d",&a,&b); m=a<b?b:…… 题解列表 2023年11月12日 0 点赞 0 评论 250 浏览 评分:0.0