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

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

    • GESP
    • CPA
    • 电子学会考级
  • 资讯
  • 竞赛
  • 讨论
  • 团队
  • 商城
登录
注册
题目详情提交记录(0)
  • 正经题解

    #include<bits/stdc++.h> using namespace std; int a[1005][1005]; int main(){ int n,m; cin>>n>>m; for(int i=1;i<=n;i++){ for(int j=1;j<=m;j++){ cin>>a[i][j]; } } int x,y,c,d,e,f; cin>>e>>f; for(int z=1;z<=e;z++){ cin>>x>>y>>c>>d; for(int i=x;i<=c;i++){ for(int j=y;j<=d;j++){ a[i][j]+=f; } } } for(int i=1;i<=n;i++){ for(int j=1;j<=m;j++){ cout<<a[i][j]<<" "; } cout<<endl; } return 0; }

    userId_undefined
    芸晴.念和/暖
    维度操控者俄罗斯套娃大师分支·分支解题者循环·循环打卡人
    3阅读
    0回复
    1点赞
  • 这个p容易误解

    userId_undefined
    186****2820
    75阅读
    1回复
    2点赞
暂无数据

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

首页