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

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

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

    userId_undefined
    抓🐀超级坏坏坏坏孙博鹏老鼠🐀
    小有名气时空双修者题解仙人快乐小狗秩序白银GESP3级
    110阅读
    3回复
    9点赞
  • 答案

    #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 w; cin>>w; for(int q=1;q<=w;q++){ int x,y,c,d; cin>>x>>y>>c>>d; for(int i=x;i<=c;i++){ for(int j=y;j<=d;j++){ cout<<a[i][j]<<" "; } cout<<endl; } } } return 0; }

    userId_undefined
    黄旭尧
    循环·循环打卡人维度操控者倔强青铜分支·分支解题者数组·数组操作员俄罗斯套娃大师
    1阅读
    0回复
    0点赞
暂无数据

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

首页