http://acm.hdu.edu.cn/showproblem.php?pid=2112 Problem Description 经过锦囊相助,海东集团最终度过了危机,从此。HDU的发展就一直顺风顺水,到了2050年,集团已经相当规模了,据说进入了钱江肉丝经济开发区500强。这时候,XHD夫妇也 ...
分类:
其他好文 时间:
2017-05-12 14:27:28
阅读次数:
136
1. substring(start, end) 1). 包头不包尾 2). start 必需项 3). end 非必需项 4). start end 谁大谁小无所谓 5). start end 若为 NAN/负数 时,则替换为 0 6). start end 均是从索引 0 算起的 7). 截取的 ...
分类:
Web程序 时间:
2017-05-09 19:42:31
阅读次数:
193
/ 查询缓存不开启 $r = mysql_query(“SELECT username FROM user WHERE signup_date >= CURDATE()”); // 开启查询缓存 $today = date(“Y-m-d”); $r = mysql_query(“SELECT use ...
分类:
数据库 时间:
2017-05-09 13:55:42
阅读次数:
221
String类型是Redis中最基本也最简单的一种数据类型首先演示一些常用的命令一、SETkeyvalue和GETkeySETkeyvalue和GETkey设置键值和获取值SET将键today的值设为tuesday;GET取出键today的值SET命令执行成功后返回OK;GET返回要取到的值当一个key已经有值时,使用SET会覆盖其原有..
分类:
其他好文 时间:
2017-05-08 18:47:19
阅读次数:
189
题目链接:https://vjudge.net/problem/UVALive-7263 题意:给两个字符串a,b,只包含1~6的数字,现在允许两种操作:1、修改某一位数字,2、修改整个串的某个数字,变成另外一个数字。问从a到b的最少操作。 首先2操作修改的比较多,假如都能打到最优解的情况下,尽可能 ...
分类:
其他好文 时间:
2017-05-08 16:53:52
阅读次数:
185
If you are serious giving up something, giving up is not serious at all. 如果你慎重地决定要放弃,那么放弃本身就没什么大不了的。 Life always has many things to bring us down. But ...
分类:
其他好文 时间:
2017-05-07 11:50:12
阅读次数:
132
Limak is an old brown bear. He often plays poker with his friends. Today they went to a casino. There are nplayers (including Limak himself) and right ...
分类:
其他好文 时间:
2017-05-05 20:54:59
阅读次数:
109
题目链接:HDU Today 立即集训要開始,抓紧时间练练手,最短路的基础题,第一次用STL的map 题目非常水,可是错了N遍。手贱了。本题不优点理的就是把地名转化为数字 #include <iostream> #include <stdio.h> #include <stdlib.h> #incl ...
分类:
其他好文 时间:
2017-05-04 20:00:11
阅读次数:
227
http://acm.hdu.edu.cn/showproblem.php?pid=5379 Problem Description Little sun is an artist. Today he is playing mahjong alone. He suddenly feels that ...
分类:
其他好文 时间:
2017-05-02 19:46:14
阅读次数:
232
Young Timofey has a birthday today! He got kit of n cubes as a birthday present from his parents. Every cube has a number ai, which is written on it. ...
分类:
其他好文 时间:
2017-05-01 13:38:41
阅读次数:
222