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

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

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

    #include<bits/stdc++.h> #define ll long long using namespace std; const int N=1e5+5,M=1e6+5; inline int read(){ int x=0; char ch=getchar(); for(;!isdigit(ch);ch=getchar()); for(;isdigit(ch);ch=getchar()) x=x*10+ch-'0'; return x; } int n,a[N],f[2][M],ans,i,now,oe; inline void update(int T,int x){ for(;x<=i;x+=x&-x) f[T][x]^=1; } inline int query(int T,int x){ int an=0; for(;x;x-=x&-x) an^=f[T][x]; return an; } int main(){ n=read(); for(i=1;i<=n;i++) a[i]=read()+a[i-1]; }

    userId_undefined

    ༺ཌ༒༺ཌༀཉAC༃ༀད༻༒ད༻

    出道萌新时空双修者枚举·枚举小能手倔强青铜字符串·魔法使递归·套娃学徒
    6阅读
    0回复
    2点赞
暂无数据

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

首页