Codeforces Round #290 Div1 B
Problem
有一只青蛙在x轴上跳,起初在原点,现有N种跳跃技能可以购买,每技能有两属性:跳跃长度Li 以及 花费Ci。若购买了第 i 种技能,则可以从 y 位置跳跃到 y+Li 或者 y-Li 位置,但需花费Ci 元。求最小花费使得青蛙可以跳到每一个整数点上,若无法做到,输出-1。
Limits
Time Limit...
分类:
其他好文 时间:
2015-02-04 09:29:05
阅读次数:
133
Linux系统默认允许用户打开的文件数是1024,对于很多用户/程序来说,这个值是不够用的,怎么扩大呢?直接ulimit -n 65535 !但此方法只能本次登陆窗口有效,退出窗口即失效,且,有可能报您没有权限,囧~一劳永逸的方法是(需要你有root权限):修改/etc/security/limit...
分类:
其他好文 时间:
2015-02-03 18:49:01
阅读次数:
449
centos7修改/etc/security/limits.d/20-nproc.conf*softnproc4096rootsoftnprocunlimitedcentos7默认其他用户是4096个最大线程。更改为65560.立即切换成功。
分类:
其他好文 时间:
2015-02-03 15:21:14
阅读次数:
298
Codeforces Round #289 Div2 E
Problem
给一串长度为N的字符串,对于每个字符,若字符为元音,则权值为1,否则为0。一个子串的权值定义为该串所有字符权值之和除以字符个数,一个母串的权值定义为所有子串的权值之和。求母串的权值。
Limits
Time Limit(ms): 1000
Memory Limit(MB): 256
N: [1, 5*...
分类:
其他好文 时间:
2015-02-01 09:37:59
阅读次数:
132
说明: 这篇是网上看到的有关修改max user processes limits,觉得还可以,就保留了下来!稍微加了点东西 具体: 最近新上了一批服务器,内核升级到了2.6.32版本,部署完MySQL实例后上到线上,直接负载冲到15,c...
分类:
系统相关 时间:
2015-01-29 12:54:44
阅读次数:
317
ORACLE用户PROFILE详解
一、官网说明
Oraclerecommends that you use the Database Resource Manager rather than the SQLstatement to establish resource limits. The Database Resource Manager offers amore flexi...
分类:
数据库 时间:
2015-01-24 22:49:38
阅读次数:
297
在向Mysql数据库中插入数据时,提示Maximum execution time of 30 seconds exceeded......。翻译:最大运行时间超过30秒。最后在php.ini中找到这句 max_execution_time = 30,是在Resource Limits(资源限制)项...
分类:
数据库 时间:
2015-01-22 20:16:21
阅读次数:
178
During our recent blog chat, there were a number of topics that were asked about and I am going to expand on some of them. The first one is the memory...
分类:
其他好文 时间:
2015-01-21 14:43:37
阅读次数:
146
limits.conf 文件实际是 Linux PAM(插入式认证模块,Pluggable Authentication Modules)中 pam_limits.so 的配置文件,而且只针对于单个会话。limits.conf的格式如下: username|@groupname type reso....
分类:
系统相关 时间:
2015-01-15 18:07:32
阅读次数:
200