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

哪里网站海报做的比较好任务推广引流平台

哪里网站海报做的比较好,任务推广引流平台,用c 可以做网站吗,网站做可信认证多少钱今天先补了上一场的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/79433/

相关文章:

  • 网站建设有关要求淘宝客怎么自己做网站及APP
  • 网站源代码在哪里做墙报的网站
  • 做网页的app重庆seo技术
  • 申请网站在线网页刷新
  • 可以做蛋白三位结构图的网站企业电话号码查询网站
  • 北京 网站策划公司网站开发专业基础课程
  • 人才网站建设的目标网站风格主要包括
  • 网页游戏网站4399上虞区住房和城乡建设局网站
  • 好的策划方案网站黑龙江公司网站建设
  • wordpress网站地图生成小白 宝塔 wordpress
  • 网站建设领导小组网站备案信息核验单填写
  • 网站建设郑州公司健康湖州网站
  • 很多域名301定重到另一网站江苏建设厅
  • 宠物网站建设理念棋牌代理平台
  • 网站后台地址忘记了seo公司网站
  • 镇江网站建设制作方案响应式网站 哪些
  • 株洲网站建设网站建立公司网站要多少钱
  • wordpress子域名多站点坂田做网站建设好的网络公司
  • 山东裕达建设工程咨询有限公司网站长春网络优化哪个公司在做
  • php网站收录系统开发岗位职责
  • 学做婴儿衣服网站建站公司前景
  • 做流量网站要做哪一种公司网站建设457216336
  • 网站设计步骤包括哪些美容网站建设
  • 南宁手机网站设计策划河南省建设工程信息网站
  • 怎样查看网站的权重wordpress 滑块
  • 利用云服务器做网站怎么用手机做网站
  • html购物网站模板下载优质东莞网站制作公司
  • 请问的网站开发培训 有知道的吗分答网站
  • 成都网站建设公司排行做网站贵不
  • 常州网站建站设计参考网站推荐