当前位置: 首页 > news >正文

仿站小工具怎么用上海做网站收费

仿站小工具怎么用,上海做网站收费,百度企业官网认证,好看的html页面模板今天先补了上一场的Codeforces Global Round 11三道题#xff0c;做的心神恍惚#xff0c;然后17点报名没敢提交#xff0c;先写了4个题剩下的改天补一补 我是真的服信号#xff0c;卷积卷si我了 A - Number of Apartments 枚举3和5的个数#xff0c;直接算出来7的个数即…今天先补了上一场的Codeforces Global Round 11三道题做的心神恍惚然后17点报名没敢提交先写了4个题剩下的改天补一补 我是真的服信号卷积卷si我了 A - Number of Apartments 枚举3和5的个数直接算出来7的个数即可 #define IO ios::sync_with_stdio(false);cin.tie();cout.tie(0) #pragma GCC optimize(2) #includeset #includemap #includecmath #includequeue #includestring #includevector #includecstdio #includecstring #includeiostream #includealgorithm #includeunordered_map using namespace std; typedef long long ll; typedef pairint,int pii; const int N100010; int main() {IO;int T1;cinT;while(T--){int n;cinn;bool ok0;for(int i0;in;i){if(ok) break;for(int j0;jn;j){int kn-3*i-5*j;if(k0||k%7) continue;couti j k/7\n;ok1;break;}}if(!ok) cout-1\n; }return 0;}B - Barrels 很明显需要把第2~k1大的全部导入最大的容器中然后求个和即是答案 #define IO ios::sync_with_stdio(false);cin.tie();cout.tie(0) #pragma GCC optimize(2) #includeset #includemap #includecmath #includequeue #includestring #includevector #includecstdio #includecstring #includeiostream #includealgorithm #includeunordered_map using namespace std; typedef long long ll; typedef pairint,int pii; const int N200010; int n,k; int a[N]; int main() {IO;int T1;cinT;while(T--){cinnk;for(int i1;in;i) cina[i];sort(a1,a1n);reverse(a1,a1n);ll res0;for(int i1;ik;i) resa[i1];resa[1];coutres\n;}return 0;}C - Numbers on Whiteboard 贪心1一定最后再用然后依次用两个最大的即可。 总的来说就是每次用两个最大的。 #define IO ios::sync_with_stdio(false);cin.tie();cout.tie(0) #pragma GCC optimize(2) #includeset #includemap #includecmath #includequeue #includestring #includevector #includecstdio #includecstring #includeiostream #includealgorithm #includeunordered_map using namespace std; typedef long long ll; typedef pairint,int pii; const int N200010; int n,k; int a[N]; int main() {IO;int T1;cinT;while(T--){cinn;vectorpii ans;int nown;for(int i1;in;i){ans.push_back({n-i,now});now(n-inow1)/2;}coutnow\n;for(auto t:ans) coutt.first t.second\n;cout\n;}return 0;}D - String Deletion 首先扫一遍序列把相同的分段用一个vector存下来不难发现我如果当前的一段个数大于1我们只需要两次操作都在这一段即可否则只需要在后面的段中选择一个个数大于1的用操作1即可简单模拟。 #define IO ios::sync_with_stdio(false);cin.tie();cout.tie(0) #pragma GCC optimize(2) #includeset #includemap #includecmath #includequeue #includestring #includevector #includecstdio #includecstring #includeiostream #includealgorithm #includeunordered_map using namespace std; typedef long long ll; typedef pairint,int pii; const int N200010; int n,k; char s[N]; int main() {IO;int T1;cinT;while(T--){cinn;cins1;vectorint now;for(int i1;in;i){int ji1;while(jns[i]s[j]) j;now.push_back(j-i);ij-1;}int res0;for(int i0,j0;inow.size();i){if(now[i]2){res;continue;}bool ok0;jmax(j,i1);for(;jnow.size();j){if(now[j]2) {now[j]--;ok1;break;}}if(!ok) i;res;}coutres\n;}return 0; }E - String Reversal 不难贪心出结论即每次选择离自己最近的字母交换 首先可以记下每个字母出现的位置用26个vector即可用树状数组快速求出每次移动需要的代价然后就不难得出答案了。 #define IO ios::sync_with_stdio(false);cin.tie();cout.tie(0) #pragma GCC optimize(2) #includeset #includemap #includecmath #includequeue #includestring #includevector #includecstdio #includecstring #includeiostream #includealgorithm #includeunordered_map using namespace std; typedef long long ll; typedef pairint,int pii; const int N200010; char s[N],p[N]; int n; queueint mp[27]; int tree[N]; int lowbit(int x) {return x-x; } void update(int k,int x) {for(;kn;klowbit(k)) tree[k]x; } int query(int k) {int res0;for(;k;k-lowbit(k)) restree[k];return res; } int main() {IO;int T1;//cinT;while(T--){cinn;cins1;for(int i1;in;i){mp[s[i]-a].push(i);update(i,1);}ll res0;for(int in;i;i--)//逆序字符{int posmp[s[i]-a].front();mp[s[i]-a].pop();resquery(pos)-1;update(pos,-1);}coutres\n;}return 0;}我是刚刚做完信号的一题来写的题解现在心态非常爆炸。。。 题解质量不想说了真的laji 剩下的题明天补一下吧明天信号又要自己看书了老师讲的根本听不懂啊啊啊 要加哟哦~~
http://www.pierceye.com/news/3452/

相关文章:

  • 通化市建设局网站公关做的好的网站
  • 专业网页制作网站推广公司外贸网站建设公司渠道
  • 南通网站建设贵吗网站建设备案书模板
  • 制作企业网站的新闻控制网站的大量访问
  • 58同城石家庄网站建设什么软件制作网站快
  • 响应式网站什么意思广州模板网站建设价格
  • 什么是网络营销?三门峡做网站优化
  • 网站界面建议wordpress 多站点 合集
  • 成都市建设厅官方网站网站备案授权书怎么填
  • 建一个网站 服务器机房托管价格画册设计报价明细表
  • 天圆地方建筑网站荆州市建设厅网站
  • 天津网站开发技术广东造价信息网
  • 百度网站建设的一般要素电商运营培训课程网站
  • 直播网站建设目的企业工商信息查询
  • org域名做商业网站手机网站模板 网址
  • 建网站申请wordpress上传主题提示要ftp
  • 厦门市同安区建设工程质量安全监督站网站网站建设与管理维护
  • 爱民网站制作微分销登录
  • 团购做的比较好的网站海外短视频平台
  • 做网站网页尺寸是多少悟空crm官网
  • 濮阳创建网站公司网站被百度收录
  • 做网站项目实例软件开发工程师就是程序员吗
  • 网站怎么做的qq邮件订阅315网站专题怎么做
  • wordpress直接上传视频网站免费网页制作模板
  • 河北建设厅注册中心网站首页湖南建设工程招标网
  • 新手做网站看什么书在建立网站站点的过程中
  • 北京怎么做网站加强门户网站建设与管理办法
  • 搭建网站需要做什么网站建设当中的技术解决方案
  • 天猫网站怎么做wordpress一键更新域名插件
  • 免费网站空间有哪些北京医疗网站建设