程序猿
程序猿
前缀和——分割队伍
一开始用的二分,想分开来算,结果啊就没做对,后来用的前缀和,也不知道对不对,提交不了了
一开始用个x把所有的和都加起来,还有就是判断时要x-a[i]-a[i],否则就不对了
代码:
【推广】
免费学中医,健康全家人
原文地址:https://www.cnblogs.com/XzhouxxX/p/14321642.html
推荐文章
poj1038
poj1002
poj1042
poj1006
HttpServletRequest对象(一)
web工程中URL地址的推荐写法
HttpServletResponse应用----生成验证码
HttpServletResponse对象(一)
在客户端缓存Servlet的输出
ServletContext
ServletConfig
Tomcat
HTTP
EL
73. Set Matrix Zeroes
72. Edit Distance
71. Simplify Path
70. Climbing Stairs
69. Sqrt(x)
68. Text Justification
67. Add Binary
66. Plus One
64. Minimum Path Sum
63. Unique Paths II
How to skip all the wizard pages and go directly to the installation process?
Inno Setup打包之先卸载再安装
How to change the header background color of a QTableView
Openstack object list 一次最多有一万个 object
Openstack 的 Log 在 /var/log/syslog 里 【Ubuntu】
Git 分支