原题链接在这里:https://leetcode.com/problems/valid-word-square/ 题目: Given a sequence of words, check whether it forms a valid word square. A sequence of word ...
分类:
其他好文 时间:
2017-01-25 08:29:27
阅读次数:
248
1、载入验证码类,并验证 (1)下载定义好的code验证码类,放置到resources目录下 (2) 添加路由 (3)添加方法 LoginController.php 注意: 不要忘记引入Code类,不加‘\’,会引入App\Http\Controllers\Admin\Code 验证: 2、$_S ...
分类:
其他好文 时间:
2017-01-23 19:15:29
阅读次数:
219
/*by SilverN*/#include<iostream>#include<algorithm>#include<cstring>#include<cstdio>#include<cmath>#define LL long longusing namespace std;const int m ...
分类:
其他好文 时间:
2017-01-21 23:38:10
阅读次数:
255
A quite challenging problem,最终看了题解才写出来,惭愧 /*Sample Input 6 J*J*** ****** J***J* ****** **B*** ****** Sample Output 4 */ 这道题里用到的几种思想还是值得我回味和思考的就是: 1、将复 ...
分类:
其他好文 时间:
2017-01-21 22:10:04
阅读次数:
461
Theatre Square CodeForces - 1A 水题水题。。。 最开始的程序是这个,可是AC不了我也不知道为什么。。。。。。QAQ。。。 #include <stdio.h>#include<stdlib.h>int main(){ int m,n,a,ans,tmp,k,h,tep, ...
分类:
其他好文 时间:
2017-01-20 00:05:38
阅读次数:
191
【题目分析】 每个数没有超过500的因子。很容易想到把每一个数表示成一个二进制的数。 (0代表该质数的次数为偶数,1代表是奇数) 然后问题转化成了选取一些二进制数,使他们的异或和为0。 高斯消元,2^(自由元)即为答案,需要把空集的情况减去,所以减一。 然而发现并不需要知道哪些是自由元,所以只需要用 ...
分类:
其他好文 时间:
2017-01-15 19:13:31
阅读次数:
158
简单语句包含在单一的一个逻辑行中。几个简单语句可以用分号分隔出现在单一的一行中。 1.表达式语句 2.断言语句:检查条件是否为真,为假引发AssertionError 3.赋值语句 4.pass语句:可以作为占位符,是一个“无操作”的语句 5.del语句:删除操作 6.print语句:打印操作 7. ...
分类:
其他好文 时间:
2017-01-14 14:57:55
阅读次数:
219
1 <!DOCTYPE> 2 <html> 3 <head> 4 <meta charset = "utf-8" /> 5 <meta name="Keywords" content="" /> 6 <mata name = "description" content = "" /> 7 <titl ...
分类:
编程语言 时间:
2017-01-11 12:53:48
阅读次数:
279
Square Code Style:https://github.com/square/java-code-styles Goolge Code Style:https://github.com/google/styleguide 转自:http://www.hawstein.com/posts/g ...
分类:
编程语言 时间:
2017-01-11 10:16:09
阅读次数:
178
Description At present, Zhongshan University has 4 campuses with a total area of 6.17 square kilometers sitting respectively on both sides of the Pear ...
分类:
编程语言 时间:
2017-01-08 15:16:27
阅读次数:
192