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

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

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

    #include<iostream> using namespace std; bool a[200001]; int main(){ int n,m; cin>>n>>m; for(int i=0;i<m;i++){ int x,y; cin>>x>>y; for(int j=x;j<=y;j++){ a[j]=true; }

    userId_undefined

    人机猫

    时空双修者出道萌新9月全勤卷王倔强青铜GESP3级快乐小狗
    2阅读
    0回复
    0点赞
  • 题解最优(勿喷)

    #include <cstdio> using namespace std; int st[200005]; int getfa(int x) { return x==st[x]?x:st[x]=getfa(st[x]); } void unio(int a,int b) { st[getfa(b)] = getfa(a); } int main() { int n,m; scanf("%d%d",&n,&m); }

    userId_undefined

    ༺ཌༀ༒☯∞复仇者∞☯༒ༀད༻™

    8月全勤卷王出道萌新时空双修者题解仙人
    1阅读
    0回复
    0点赞
暂无数据

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

首页