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

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

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

    #include<bits/stdc++.h> using namespace std; struct emp{ int id,cnt; string gonghao,bumen; }a[15]; int main(){ int n,m; cin>>n>>m; for(int i=1;i<=n;i++){ int id; string gonghao,bumen; cin>>id>>gonghao>>bumen; a[id].gonghao=gonghao; a[id].bumen=bumen; } while(m--){ int x,y; cin>>x>>y; if(y>9)a[x].cnt++; } for(int i=1;i<=n;i++){ cout<<i<<' '<<a[i].gonghao<<' '<<a[i].bumen<<' '<<a[i].cnt<<'\n'; } return 0; }

    userId_undefined
    ༺ཌༀཉི༒威·龙༒༃ༀད༻
    时间刺客空间掌握者冒泡宗师→排序元老模拟·模拟练习生位操作忍者循环·循环打卡人
    1阅读
    0回复
    0点赞
暂无数据

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

首页