- 博客(5)
- 收藏
- 关注
原创 信息学奥赛一本通高手训练1682:最小字典序
题目代码#include<bits/stdc++.h>using namespace std;const int N=55;int T,sm,pm,px[N],py[N],pz[N];char s[N],t[N],ans[N];inline void solve_bit(int id,int k){ for(int i=1;i<k;i++)t[i+px[id]-1]=t[i+px[id-1]-1]; for(int i=k+1,im=pz[id];i<=im
2022-03-01 18:36:17 265
原创 信息学奥赛一本通高手训练1680:序列
题目代码#include<cstdio>#include<iostream>#include<cmath>#define LL long longusing namespace std;const LL N = 1400000+7;const LL mod = 1e9+7;int n, t;LL pos[N], sum[N], ans[N];struct node{ LL ll, rr;}a[N];int main(){ p
2022-02-28 18:06:59 279
原创 信息学奥赛一本通高手训练1679:子集
题目代码#include<bits/stdc++.h>template<class T>inline void read(T & res){ char ch; while(ch=getchar(),! isdigit(ch)); res=ch^48; while(ch=getchar(),isdigit(ch))res=res*10+ch-48;}typedef long long ll;const int N=2e5+5;const doub
2022-02-28 18:04:08 305
原创 信息学奥赛一本通高手训练1677:软件开发
题目#pragma GCC optimize(3)#include <bits/stdc++.h>#define debug(x) cout<<#x<<":"<<x<<endl;#define dl(x) printf("%lld\n",x);#define di(x) printf("%d\n",x);typedef long long ll;typedef unsigned long long ull;using names
2022-02-28 18:00:14 194
原创 信息学奥赛一本通高手训练题解目录
第1部分 基础算法(高手训练)-->第1章 贪心算法1.1.1 扑克牌1.1.2游戏通关1.1.3楼间跳跃1.1.4堆蛋糕1.1.5塔第1部分 基础算法(高手训练)-->第2章 二分与三分每日更新,未完待续
2022-02-27 17:40:37 4204 3
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人