原题链接 题意:斯努克站在一个二维平面上。在一次操作中,他可以向 \(x\) 轴正方向或是 \(y\) 轴正方向移动一步。定义函数 \(f(r,c)\) 为通过上述操作,斯努克从 \((0,0)\) 走到 \((r,c)\) 的方案总数。现在给定 \(r_1,r_2,c_1\) 和 \(c_2\), ...
分类:
其他好文 时间:
2021-04-01 13:11:49
阅读次数:
0
The land is for sale in CyberCity, and is divided into several pieces. Here it is assumed that each piece of land has exactly two neighboring pieces, ...
分类:
其他好文 时间:
2021-03-11 19:32:24
阅读次数:
0
Eva would like to make a string of beads with her favorite colors so she went to a small shop to buy some beads. There were many colorful strings of b ...
分类:
其他好文 时间:
2021-02-27 13:26:28
阅读次数:
0
状态表示: \(f[len][cnt]\):当前为len位,已经统计的$0$的个数为cnt,不计前导$0$。 注意点: 由于前导$0$标识符lead的存在,如果左边界为$0$需要作加一处理。 LL f[15][15]; int a[15]; LL dfs(int len,int cnt,bool l ...
分类:
其他好文 时间:
2021-02-22 12:28:38
阅读次数:
0
1. 单进程最大打开文件数限制 有时候会遇上socket/file: can‘t open so many files的问题,其实是Linux系统有文件句柄限制的,一般Linux系统限制单进程最大可以打开1024个文件,这是远远不能满足高并发需求的。 通过ulimit –a命令来查看系统的一些资源限 ...
分类:
系统相关 时间:
2021-02-17 14:58:56
阅读次数:
0
Trees are fundamental in many branches of computer science (Pun definitely intended). Current stateof-the art parallel computers such as Thinking Mach ...
分类:
其他好文 时间:
2021-02-08 12:29:55
阅读次数:
0
LSTM原理 CNN卷积神经网络 应用:图像,视频 RNN 递归神经网络 应用:NLP 1RNN结构 one to one 比如输入一张图片,它会给我们输出是猫还是狗 one to many 比如输入一张图片,给出一些列图片描述 many to one 比如文本分析,给出文本是积极还是消极的 man ...
分类:
其他好文 时间:
2021-01-26 12:10:00
阅读次数:
0
【题目链接】 题意分析 这道题感觉应做的话可以 但是巧法锻炼思维 首先 我们枚举正方形的左上角坐标 然后依次扫描四条边的长度 注意这里扫描有两种方式 平行于边以及平行于对角线 判断四条边的长度是否相等 这是第一个指标 然后 我们还需要判断这是否是一个独立的正方形 这里 我们可以使用搜索判断联通的1的 ...
分类:
其他好文 时间:
2021-01-22 12:02:13
阅读次数:
0
问题 too many open files错误 最近在看golang,写了个扫描title的脚本,发现打开文件的时候会报错,记录下。 too many open files https://github.com/Stu2014/go package main import ( "bufio" "c ...
分类:
其他好文 时间:
2021-01-22 11:53:36
阅读次数:
0
I have a Delphi DLL that houses a form which uses a variety of third party components. This DLL is used by many different versions of Delphi. I compil ...