摘要:
L1-048 矩阵A乘以B (15分)给定两个矩阵A和B,要求你计算它们的乘积矩阵AB。需要注意的是,只有规模匹配的矩阵才可以相乘。即若A有Ra行、Ca列,B有Rb行、Cb列,则只有Ca与Rb相等时,两个矩阵才能相乘。输入格式:输入先后给出两个矩阵A和B。对于每个 阅读全文
posted @ 2020-03-18 21:41
ppppppro
阅读(1412)
评论(0)
推荐(0)
摘要:
#include <iostream> #include <algorithm> using namespace std; int Find(int arr[],int n,int s){ int flag=-1; for(int i=0;i<n;i++){ if(arr[i]==s) flag=i 阅读全文
posted @ 2020-03-18 18:43
ppppppro
阅读(167)
评论(0)
推荐(0)