H. Binary Median 题意:给定$n$,\(m\),及$n$个二进制数,在由0到$2m-1$这$2m$个二进制数中删掉这$n$个数,求剩余二进制数的中位数。 LL trans(char s[]) { int len = strlen(s); int j=0; LL ans=0; whil ...
分类:
其他好文 时间:
2020-05-26 00:58:54
阅读次数:
103
UVA679.小球下落 A number of K balls are dropped one by one from the root of a fully binary tree structure FBT. Each time the ball being dropped first visi ...
分类:
其他好文 时间:
2020-05-26 00:56:03
阅读次数:
58
/usr : Unix System Resources /sbin: super user bin /bin是系统的一些指令。bin为binary的简写主要放置一些系统的必备执行档例如:cat、cp、chmod df、dmesg、gzip、kill、ls、mkdir、more、mount、rm、s ...
分类:
系统相关 时间:
2020-05-25 19:50:19
阅读次数:
105
本文是介绍3.3 初识 Makefile+3.4Makefile语法 3.3 初识 Makefile 3.3.1 什么是 Makefile 在 3.2 章节我们了解了在 Ubuntu 系统下通过 gcc 编译器来编译 C 程序,在我们演示的历程中只有一个C 文件,我们直接在终端输入 gcc 的编译命 ...
分类:
系统相关 时间:
2020-05-25 14:00:16
阅读次数:
78
Generic Binary Install MySQL 1、如果未在本地安装依赖库,则数据目录初始化以及后续的服务器启动步骤将会失败。安装libaio库的代码如下 2、添加mysql组和mysql用户。所有的文件和目录应该在mysql用户下 3、解压二进制文件 4、制作软连接 5、MySQL各个目 ...
分类:
数据库 时间:
2020-05-25 12:27:15
阅读次数:
90
题面 Time limit per test: 2 seconds Memory limit per test: 256 megabytes Description Consider all binary strings of length m ( 1≤m≤60 ). A binary string ...
分类:
其他好文 时间:
2020-05-25 12:26:07
阅读次数:
95
背景:在Apache里面下东西经常会有binary和source的版本,不知道两个版本有什么区别、怎么选 区别:简单来讲,binary是编译好的可以直接使用,source是还没编译过的源代码,需要自行编译。 转自:http://blog.sina.com.cn/s/blog_a3fb4c660102 ...
分类:
其他好文 时间:
2020-05-25 12:21:35
阅读次数:
71
Given a binary tree, return all root-to-leaf paths. Note: A leaf is a node with no children. Example: Input: 1 / \ 2 3 \ 5 Output: ["1->2->5", "1->3"] ...
分类:
其他好文 时间:
2020-05-25 10:54:39
阅读次数:
51
很简单,来个层次遍历,当遍历队列,遍历到刚开始遍历时,队列里最后一个数时(也就是遍历len-1次),得到的就是右视图的其中一个节点 /** * Definition for a binary tree node. * public class TreeNode { * int val; * Tree ...
分类:
其他好文 时间:
2020-05-25 09:46:16
阅读次数:
49
工作汇报 编辑器 xwl: 今天: lpx报问题:file_update过于频繁 \ 解决方案:延迟更新, \ 如果200ms没有下一个更改就提交此更改; \ 新更改时reset timer 多文件debug: pdb和gdb都支持带文件名(break xxx.py:123) 获取断点:by edi ...
分类:
其他好文 时间:
2020-05-24 21:11:04
阅读次数:
74