码迷,mamicode.com
首页 >  
搜索关键字:bestcoder round    ( 15837个结果
Educational Codeforces Round 94 (Rated for Div. 2) C. Binary String Reconstruction (构造)
题意:给你一个字符串$s$,原字符串为$w$,如果$i>x$且$w_=1$,那么$s_=1$,如果$i+x\le n$且$w_{i+x}=1$,那么$s_=1$,否则$s_=0$.求$w$的一种可能的情况. 题解:对于$s$中的$0$,我们知道,它左右两边距离$x$的地方一定都是$0$,所以我们先假 ...
分类:其他好文   时间:2020-09-17 15:39:22    阅读次数:23
Illuminate\Database\Capsule sql调试
$cate_info = Capsule::table('zh_app_category')->where('name', $classify)->first(); $cate_info->toSql() $app_ids = Capsule::select('SELECT app_id FROM ...
分类:数据库   时间:2020-09-17 15:30:23    阅读次数:35
简单组网(Eth-Trunk)负载分担链路聚合
两台交换机上有vlan101和vlan102的网络,两台交换机之间采用Eth-Trunk模式,实现链路聚合负载分担。1、拓扑图2、创建vlan,并将接口加入到vlan中SWA[swa]vlan batch 101 102Info: This operation may take a few seco... ...
分类:其他好文   时间:2020-09-17 12:25:45    阅读次数:46
Educational Codeforces Round 94 (Rated for Div. 2)【ABCD】
比赛链接:https://codeforces.com/contest/1400 A. String Similarity 题意 给出一个长 $2n-1$ 的二进制串 $s$,构造一个长 $n$ 的字符串,使其与 $s$ 的每个长 $n$ 的子串至少有一处字母相等。 题解 长 $n$ 的子串恰有 $ ...
分类:其他好文   时间:2020-09-16 12:34:16    阅读次数:64
「LibreOJ β Round #2」贪心只能过样例
知识点: bitset,01 背包 原题面 Loj 题意简述 给定 \(n\) 个数,\(x_i\) 的取值范围 \([a_i,b_i]\)。 求不同的 \(\sum\limits_{i=1}^{n}x_{i}^{2}\) 的种类数。 $1\le n,a_i,b_i\le 100$。 分析题意 数据 ...
分类:其他好文   时间:2020-09-16 12:20:51    阅读次数:25
Codeforces Round #636 (Div. 3)
链接:Codeforces Round #636 (Div. 3) A - Candies 题意:求出一个x满足$x + 2*x + 4*x + \dots + 2^{k-1}*x = n$且$k>1$ 思路:提出x得$x*(1+2+4+\dots + 2^{k-1})=n$,从小到大枚举k,直到满 ...
分类:其他好文   时间:2020-09-15 21:27:28    阅读次数:52
Codeforces Round #666 (Div. 1)翻车祭
这段时间有点忙,好久没打CF了 A 考虑到n与n-1互质,可以把数列分成两段操作[1,1][2,n],全部加成n的倍数,再操作[1,n]即可,注意特判n=1 #include<bits/stdc++.h> using namespace std; typedef long long ll; cons ...
分类:其他好文   时间:2020-09-11 16:00:37    阅读次数:48
Codeforces Round #666 (Div. 2)
A #include <bits/stdc++.h> #define all(n) (n).begin(), (n).end() #define se second #define fi first #define pb push_back #define mp make_pair #define ...
分类:其他好文   时间:2020-09-11 16:00:21    阅读次数:50
五、vba事件
一、with语句 演示宏录制单元格格式设置,讲解with语句;对照单元格字体设置、对齐设置等菜单与录制的宏代码。 二、vba事件问题导入--高亮显示案例 问题1:结合文件“DEMO-1-从格式设置说起-(with)语句”描述需求:当表格很大时,希望点到某格时,该行高亮显示,同时之前其他行的高亮显示消 ...
分类:编程语言   时间:2020-09-11 15:48:46    阅读次数:37
Educational Codeforces Round 94 (Rated for Div. 2) String Similarity、RPG Protagonist、Binary String Reconstruction、Zigzags 思维
题目链接:String Similarity 题意: 首先题目定义了两个串的相似(串的构成是0、1),如果两个串存在对于一个下标k,它们的值一样,那么这两个串就相似 然后题目给你一个长度为2n-1的串,我们设下标从1开始,那么[1,n],[2,n+1],[3,n+2]...[n,2n-1]每一个都是 ...
分类:其他好文   时间:2020-09-10 23:20:02    阅读次数:48
15837条   上一页 1 ... 32 33 34 35 36 ... 1584 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!