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

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

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

    userId_undefined
    抓🐀超级坏坏坏坏孙博鹏老鼠🐀
    小有名气时空双修者秩序白银快乐小狗题解仙人GESP3级
    122阅读
    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
    黄旭尧
    循环·循环打卡人维度操控者倔强青铜分支·分支解题者数组·数组操作员俄罗斯套娃大师
    13阅读
    0回复
    1点赞
  • #include<bits/stdc++

    #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 e; cin >> e; int x1, y1, x2, y2; for(int k = 0; k < e; k++) { cin >> x1 >> y1 >> x2 >> y2; for(int i = x1; i <= x2; i++) { for(int j = y1; j <= y2; j++) { cout << a[i][j] << " "; } cout << endl; } } return 0; }

    userId_undefined
    ༺ཌༀ༒剑起风止༒ༀ༻
    模拟·模拟练习生递归·套娃学徒贪心·贪心尝试者快乐小狗枚举·枚举小能手秩序白银
    1阅读
    0回复
    0点赞
暂无数据

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

首页