Harry Potter and the Hide Story
Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 2193 Accepted Submission(s): 530
Problem Descripti...
分类:
其他好文 时间:
2014-07-30 01:03:32
阅读次数:
245
http://acm.hdu.edu.cn/showproblem.php?pid=1029
Ignatius and the Princess IV
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32767 K (Java/Others)
Total Submission(s): 16754 Accepte...
分类:
其他好文 时间:
2014-07-29 21:58:22
阅读次数:
352
现在做的App,因为考虑到安全性,所以用到了AES加密,以及配对安卓使用的AES加密。.h文件#import #import #import #define AES_KEY @"cx@hy!*&y.)x#[;>"#define AES_IV @"0102030405060708"@interface...
分类:
移动开发 时间:
2014-07-29 21:01:52
阅读次数:
608
简单的说:
引用 -- 变量别名
指针 -- 存地址
#include
int
main()
{
/* 声明一个引用reiv1,同时初始化,也就是reiv1是iv的别名*/
int iv;
int & reiv = iv;
/* 声明一个引用,但引用不能为空,必须同时初始化*/
// int & reiv1; /*错误:‘reiv1’声明为引用却未被初始化 */
iv = 13;
printf("iv = %d\n", iv);
printf("reiv = %...
分类:
其他好文 时间:
2014-07-29 13:02:17
阅读次数:
186
应用商店的小镜子A LVOE STORYI mean I knew it was ending, but I was still there, doing the same job I had been doing for the last 8 years. So my day to day exp...
分类:
其他好文 时间:
2014-07-28 23:44:54
阅读次数:
374
题目地址:HDU 3416
这道题WA了一天半。。。最终才发现是我一直习惯性的将isap的表示上界的变量直接表示成sink+1了。。。但是在这道题里汇点sink不一定是最后一个点。。。sad。。。
这题可以有两种方法做,一种是求两次最短路,d1表示所有点到源点的最短距离,再求一次用d2表示所有点到汇点的最短距离。然后根据公式d1[u]+d2[v]+w==d1[sink]判断是否属于最短路中的一...
分类:
其他好文 时间:
2014-07-26 03:01:36
阅读次数:
223
F() 的执行不经过 python解释器,不经过本机内存,是生成 SQL语句的执行。# Tintin filed a news story!reporter = Reporters.objects.get(name='Tintin')reporter.stories_filed += 1report...
分类:
数据库 时间:
2014-07-25 16:48:21
阅读次数:
265
汉诺塔
汉诺塔II hdu1207:
先说汉若塔I(经典汉若塔问题),有三塔,A塔从小到大从上至下放有N个盘子,现在要搬到目标C上,
规则小的必需放在大的上面,每次搬一个,求最小步数。这个问题简单,DP:a[n]=a[n-1]+1+a[n-1],先把
上面的n-1个放在B上,把最大的放在目标C上,再把N-1个放回到C上即可。
网上的一种最优解法如下:(1)将x(1
#inc...
分类:
其他好文 时间:
2014-07-20 23:18:31
阅读次数:
272
IV背景半透明,DIV中的字不半透明 代码如下: 图层背景半透明,字体颜色也半透明 代码如下: 图层背景半透明,字体颜色不半透明& lt;/div> *******带filter的层一定要有width属性,否则filter无效。******** 我们可以用CSS样式的filter(滤镜效果)对HT....
分类:
其他好文 时间:
2014-07-19 21:18:57
阅读次数:
290
$ wc story.txt39 237 1901 story.txt● Use -l for only line count● Use -w for only word count● Use -c for only byte count● Use -m for character count (n...
分类:
系统相关 时间:
2014-07-18 00:22:31
阅读次数:
278