好爽啊 晚上不回宿舍打比赛 最后打了三题 fail了一题.. 是因为第三题>='9'就进位了... A Vitya in the Countryside 打的时候被hack了一次cnm变大变小只有一个数的时候判断是不是0和15 其他的话判断一下最后的那个是不是0和15和增减性就好了 #include ...
分类:
其他好文 时间:
2016-09-25 17:22:41
阅读次数:
208
1.问题:微信网页端调起支付API调用结果alert(res.error.msg);输出get_brand_wcpay_request:fail官网调用示例代码:2.解决:微信统一下单API调用返回正确,拿到了prepay_id,并使用appId、timeStamp、nonceStr、package、signType生成签名paySign,服务端和客户端调用复检没有..
分类:
微信 时间:
2016-09-23 21:57:43
阅读次数:
402
在安装cacti0.88h的时候。将cacti.sql导入到数据库的时候出现如下错误: ERROR 1067 (42000) at line 1847: Invalid default value for 'status_fail_date' 查看status_fail_date的数据库创建语句: ... ...
分类:
数据库 时间:
2016-09-23 18:35:22
阅读次数:
471
输出 方法1:select sno,cno,score,case when score>=60 then 'pass' else 'fail' end 结果 from sc; 方法2:select sno,cno,score,decode (sign(score-60),-1,'fail','pas ...
分类:
其他好文 时间:
2016-09-23 14:35:59
阅读次数:
138
又被微信坑了一整天,看完官方文档怎么测试都不通过,我一直怀疑是新版本微信支付我没有设置“共享收货地址”开关造成的。 后来经过验证,新版本不需要做这件事了。 那么,我没错,是微信的文档没及时更新。。。 查了几个技术博客得知,这个接口在2016年的年中已经升级了,旧版的那个接口不能使了。 于是那个什么A ...
分类:
微信 时间:
2016-09-22 01:00:58
阅读次数:
462
设置ssh白名单登陆vim/etc/pam.d/sshdauthrequiredpam_listfile.soitem=usersense=allowfile=/etc/sshusersonerr=fail把需要登录的账号添加到/etc/sshusers文件中
分类:
其他好文 时间:
2016-09-21 00:17:23
阅读次数:
210
I'm converting a json-like string into json, and the following code works in the scala repl But when it is compiled, I'm getting the following error W ...
分类:
Web程序 时间:
2016-09-19 15:53:35
阅读次数:
167
题意:对于每个位置,统计有多少个相同的字串。 分析:按照题目的意思,把fail树画出来就会发现,对于第i个字符:ans[i] = ans[i-1] + (ans[i-1]-ans[i-1]) + cal(i); cal(i)是计算s[1…i-1]所有子串与s[1…i]的最长公共后缀的和。换句话说,根 ...
分类:
其他好文 时间:
2016-09-08 10:06:16
阅读次数:
346
书接上文<redis演练(6)redis主从模式搭建>.<redis演练(6)redis主从模式搭建>中仅仅配置了redis主从环境。分别配置了2个主从结构。分别是1.有向无环,2星型模型。配置起来非常简单。但是,遗留了一个尾巴,没有阐述。如果master宕掉了怎么办?redis如何实现fail-ove..
分类:
其他好文 时间:
2016-09-07 23:04:12
阅读次数:
287
#encoding:utf-8require 'mail'def send_email sum,fail,case_path,name,receive smtp = { :address => 'smtp.mobanker.com', :port => 25, :domain => 'mobanke ...
分类:
其他好文 时间:
2016-09-07 20:47:35
阅读次数:
110