ICode9

精准搜索请尝试: 精确搜索
  • 暑假集训7月20日(距离结训赛26天)2022-07-20 10:32:07

    K - Subarrays OR  类似DP,前缀和 #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int,int>pii; const int N=1e5+10; int n; set<ll> preans,nowans,ans; signed main() { int t; cin>>t; while(t--)

  • 暑假集训7月19日(距离结训赛27天)2022-07-19 09:02:04

    CF补题:B题:只想到相隔偶数就算,但是没想好用什么方法计算,每一个都遍历肯定超啊原来可以和滚动优化一样,只记录上一次的位置#include <bits/stdc++.h> using namespace std; const int N=1e5+10; int a[N],pre[N],ans[N]; signed main() { int t; scanf("%d",&t); while

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有