https://www.luogu.org/problem/show?pid=1360 题目描述 Farmer John's N cows (1 ≤ N ≤ 100,000) share many similarities. In fact, FJ has been able to narrow d ...
分类:
其他好文 时间:
2017-10-22 23:30:07
阅读次数:
255
To prepare for PAT, the judge sometimes has to generate random passwords for the users. The problem is that there are always some confusing passwords ...
分类:
其他好文 时间:
2017-10-22 11:08:21
阅读次数:
143
关于FGPA的复位 当初开始学FPGA的时候,总是疑惑:FPGA不是没有复位管教么,但总在always看到有复位信号。这个复位信号(我们暂且称为rst_n)从哪里来? 实际上是可以从两个方面获得的,这与我们的MCU一样。 考虑到系统的初始化可能需要一定的时间,需要写一段Verilog代码进行延时复位 ...
分类:
其他好文 时间:
2017-10-22 00:09:12
阅读次数:
255
You are given n pairs of numbers. In every pair, the first number is always smaller than the second number. Now, we define a pair (c, d) can follow an ...
分类:
其他好文 时间:
2017-10-20 11:50:01
阅读次数:
115
1、log的设置方式。在 runtime setting中可以设置log的生成方式:默认的log方式:Enable logging选中,log option是Send messages only when an error occurs.可以修改日志的方式:Always send messages( ...
分类:
其他好文 时间:
2017-10-18 19:44:23
阅读次数:
99
"no-alert": 0,//禁止使用alert confirm prompt"no-array-constructor": 2,//禁止使用数组构造器"no-bitwise": 0,//禁止使用按位运算符"no-caller": 1,//禁止使用arguments.caller或argument ...
分类:
其他好文 时间:
2017-10-18 10:13:12
阅读次数:
165
1、多核心系统资源分配问题 就像提示中写的一样,启动脚本写成如下即可: 2、大内存页问题 我们cat一下上面两个文件,发现内容是“[always] madvise never”,我们需要根据提示将其改为never,但是这项设置不是很好改,所以一个比较简单的解决方案就是开机时将其修改了,并不改变默认配 ...
分类:
数据库 时间:
2017-10-17 15:36:13
阅读次数:
155
文件操作文件操作流程 1、打开文件,得到文件句柄并赋值给一个变量 2、通过句柄对文件进行操作 3、关闭文件现有文件如下: Somehow, it seems the love I knew was always the most destructive kind 不知为何,我经历的爱情总是最具毁灭性 ...
分类:
编程语言 时间:
2017-10-16 19:29:38
阅读次数:
208
题目链接 Problem Description Monkey A lives on a tree, he always plays on this tree.One day, monkey A learned about one of the bit-operations, xor. He was ...
分类:
其他好文 时间:
2017-10-16 18:02:59
阅读次数:
178
31w/m 43 Children always appreciate small gifts of money. Father, of course, provides a regular supply of pocket-money, but uncles and aunts are alway ...
分类:
其他好文 时间:
2017-10-16 09:43:57
阅读次数:
185