loj100

include

include

include

include

define int long long

define ll long long

using namespace std;
const ll mod=1000007;
ll n,a,b,m,p;
struct re{
int rec[101][101];
}ans,tem,org;
re tim(re x,re y){
for(int i=1;i<=n;++i){
for(int j=1;j<=m;++j){
tem.rec[i][j]=0;
for(int k=1;k<=p;++k){
tem.rec[i][j]=x.rec[i][k]*y.rec[k][j];
tem.rec[i][j]%=mod;
}
}
}
return tem;
}
signed main(){
cout<<"23423";
scanf("%d%d%d",&n,&p,&m);
cout<<"Sdf";
for(int i=1;i<=n;++i){
for(int j=1;j<=p;++j){
scanf("%d",&org.rec[i][j]);
}
}
cout<<endl;
for(int i=1;i<=p;++i){
for(int j=1;j<=m;++j){
scanf("%d",&ans.rec[i][j]);
}
}
ans=tim(org,ans);
for(int i=1;i<=n;++i){
for(int j=1;j<=m;++j){
cout<<ans.rec[i][j]<<" ";
}
cout<<endl;
}
return 0;
}

暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇