最新 最热

玩转midi:使用vmpk在Gnu/Linux下弹钢琴

安装sudo apt-get install vmpksudo apt-get install timidity配置依次打开 QjackCTL,Qsynth(打开后其它音乐软件会禁声), VMPK,配置Qsynth:Soundfonts → Open 加载sf2文件,(一般路径为/usr/share/so......

2020-11-04
1

使用pelican生成blog

md/rst 文件生成 html 到 output目录### 客本地预览, 开启本地简易web服务默认端口: 8000, 有autoload特性```cd output && python3 -m pelican.server

2020-11-04
0

CF思维联系–CodeForces-217C C. Formurosa(这题鸽了)

ACM思维题训练集合 The Bytelandian Institute for Biological Research (BIBR) is investigating the properties of two species of bacteria, named simply 0 and 1. Even unde...

2020-11-03
1

Python使用Excel将数据写入多个sheet

将一个列表数据写入output.xlsx的a,b,c……等sheet中import pandas as pddf1 = pd.DataFrame({'a':[3,1],'b':[4,3]}) df2 = df1.copy()with pd.ExcelWriter('F:python入门数据2output.....

2020-11-02
1

C++核心准则​SL.io.50:避免使用endl

The endl manipulator is mostly equivalent to 'n' and "n"; as most commonly used it simply slows down output by doing redundant flush()s. This slowdown can be ...

2020-10-30
1

Codeforces 1291 Round #616 (Div. 2) B

B. Array Sharpening time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output You’re given an array a1,…,an ...

2020-10-29
1

Codeforces Round #618 (Div. 2)-Non-zero

这个题是说通过最小的修改次数,是数列和不能为0,乘积不能为0; 那么也即数列中不存在0,如果存在0的一定要改,存在0的只能变成1,那我们考虑变成1之后,的和是否等于0,如果等于,就在修改1个,即cnt+1。...

2020-10-29
0

Codeforces Round #618 (Div. 2)-B. Assigning to Classes

Reminder: the median of the array [a1,a2,…,a2k+1] of odd number of elements is defined as follows: let [b1,b2,…,b2k+1] be the elements of the array in the sorte...

2020-10-29
0

Codeforces Round #618 (Div. 2)-C. Anu Has a Function

我们把a|b-b换成 a-a&b,也就是说使得a&b最小,那我们考虑什么时候最大,即所有数的最高位,只有一个为1不然一定在运算的过程中被削去,那么这个题就可以改成,在32位中找某一位只有一个数是1的那一个数,让他当第一。因为其余都会...

2020-10-29
0

CF思维联系– Codeforces-989C C. A Mist of Florescence

As the boat drifts down the river, a wood full of blossoms shows up on the riverfront.

2020-10-29
1