2 条题解

  • 1
    @ 2024-3-16 10:46:07
    #include <iostream>
    #include<algorithm>
    using namespace std;
    int arr[100][100];
    int main(){ //C++ L11 矩阵求和 
    	int n,m;
    	cin>>n>>m;
    	for(int i=1;i<=n;i++){
    		for(int j=1;j<=m;j++){
    			cin>>arr[i][j];
    		}
    	}
    	cout<<arr[1][1]+arr[n][m]+arr[1][m]+arr[n][1];
        return 0;
    }
    
    • -1
      @ 2024-5-12 13:10:06

      q

      • 1

      信息

      ID
      1204
      时间
      1000ms
      内存
      256MiB
      难度
      10
      标签
      (无)
      递交数
      10
      已通过
      0
      上传者