文章

1

粉丝

0

获赞

9

访问

457

头像
旋转矩阵 - 北航 题解:
P1377 北京航空航天大学机试题
发布于2025年3月2日 22:13
阅读数 457

有大佬可以帮我看下哪儿错了吗 一直是百分之80

#include <bits/stdc++.h>
using namespace std;
int main()
{    int x;
    while(cin>>x){
    int flag1=1,flag2=1,flag3=1,flag4=1;
    int ch1[x][x];
    int ch2[x][x];
    for(int i=0;i<x;i++)
    {    for(int j=0;j<x;j++)
        {
            cin>>ch1[i][j];
        }
    }
    for(int i=0;i<x;i++)
    {    for(int j=0;j<x;j++)
        {
            cin>>ch2[i][j];
        }
    }

//是否为0
    for(int i=0;i<x;i++)
    {    for(int j=0;j<x;j++)
 ...

登录查看完整内容


登录后发布评论

2 条评论
snake
2025年3月4日 12:41

位置错了,代码写的时候尽量缩进对齐,不然考试的时候紧张更难看出问题。

赞(0)

安若少年 : 回复 snake: 感谢感谢

2025年3月5日 13:52