Sicily 3712. Matrix multiplication
来源:互联网 发布:施乐2011设置网络打印 编辑:程序博客网 时间:2024/06/08 08:32
#include<iostream>using namespace std;int max1[1001][1001];int max2[1002][1001];int sum[1001][1001];int main(){ int n; while(cin >> n){ for(int i=0; i < n; i++) for(int j=0; j < n; j++) cin >> max1[i][j]; for(int i=0; i < n; i++) for(int j=0; j < n; j++) cin >> max2[i][j]; for(int i=0; i < n; i++) for(int j=0; j < n; j++) for(int f=0; f < n; f++){ sum[i][j]+=max1[i][f]*max2[f][j]; } for(int i=0; i < n; i++) for(int j=0; j < n; j++) if(j<n-1)cout << sum[i][j] <<" "; else cout << sum[i][j] <<endl; for(int i=0; i < n; i++) for(int j=0; j < n; j++) sum[i][j]=0; } return 0;}
0 0
- Sicily 3712. Matrix multiplication
- 3712. Matrix multiplication
- 3712. Matrix multiplication
- Matrix Multiplication
- Matrix Multiplication
- Matrix Multiplication
- Matrix Multiplication
- Matrix multiplication
- Matrix multiplication
- 3712. Matrix multiplication 其实就是数组
- Matrix Chain Multiplication
- zoj1094 Matrix Chain Multiplication
- Matrix chain multiplication problem
- POJ 3318 Matrix Multiplication
- Matrix Chain Multiplication
- uva442 Matrix Chain Multiplication
- 442 - Matrix Chain Multiplication***
- poj Matrix Chain Multiplication
- 处理json文件中的数组
- IOS 旋转重构视图的实现
- Sicily 4312. A + B
- android ListView定位
- php 批量去除bom头方法
- Sicily 3712. Matrix multiplication
- jquery的find和filter的区别
- JNI/NDK开发指南(六)——C/C++访问Java实例方法和静态方法
- Eclipse4.4 luna修改jsp中默认的html版本
- SVN更新时不能打开新文件svn-base系统找不到指定的文件
- Sicily 7144. Different Triangles
- 数据结构与算法大全 -- 目录
- 基于android 的GPS 移植——主要结构体及接口介绍
- Sicily 4315. Digit Count