practice 529 Oct.05.2012
div2:
[250]:
[500]:
1.stringstream 可以把字符串从空格分开,类似java的split(' ')
2.sort的comp函数写在class里的时候需要是static,所以写在class外比较好
3.strcmp是c的字符串比较函数,cpp中<,>,=,!=均被重载,也可以用string的成员函数compare
[1000]:
1.注意边界N=0,1
2.使用奇数和sqrt(N)是最明显的时间优化
practice 530 Oct.06.2012
div2:
[250]:
[500]:
practice 531 Jan.11.2012
div2:
[250]W
[500]R
浙公网安备 33010602011771号