acgo题库
  • 首页
  • 题库
  • 学习
  • 天梯
  • 备赛

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

    • GESP
    • CPA
    • 电子学会考级
  • 竞赛
  • 讨论
  • 团队
登录
注册
题目详情提交记录(0)
  • 123

    #include<bits/stdc++.h> using namespace std; int a[4][4]; int main(){ for(int i=0;i<4;i++){ for(int j=0;j<4;j++){ cin>>a[i][j]; } } int n=0; for(int i=0;i<4;i++){ for(int j=0;j<4;j++){ if(ij||i+j3){ n+=a[i][j]; } } } cout<<n; return 0; }

    userId_undefined

    曹汇煦

    空间掌握者维度操控者格式·格式排版员循环·循环打卡人分支·分支解题者数组·数组操作员
    18阅读
    1回复
    2点赞
  • 题解

    userId_undefined

    ???

    空间掌握者题解仙人字符串·魔法使出道萌新GESP3级模拟·模拟练习生
    10阅读
    0回复
    1点赞
  • sfcytusadcfsdcgsuycg

    #include<iostream> using namespace std; int a[105][105],s; int main(){ for(int i=1;i<=4;i++){ for(int j=1;j<=4;j++) { cin>>a[i][j]; } }

    userId_undefined

    一架放襟翼的A380

    7阅读
    0回复
    1点赞
  • 题解

    userId_undefined

    zsy

    时空双修者题解仙人BUG超度大师秩序白银快乐小狗
    16阅读
    0回复
    0点赞
  • 老师教的

    #include<iostream> using namespace std; int main(){ int sum=0,a[1010][1010]; for(int i=1;i<=4;i+=1){ for(int j=1;j<=4;j+=1){ cin>>a[i][j]; if(ij||i+j4+1){ sum+=a[i][j]; } } } cout<<sum; }

    userId_undefined

    魏敬平

    倔强青铜
    6阅读
    0回复
    0点赞
  • A30265.【二维数组】对角线元素和

    userId_undefined

    ༺ཌༀ༒☯星河·月寂☯༒ༀད༻™

    2阅读
    0回复
    0点赞
暂无数据

提交答案之后,这里将显示提交结果~

首页