[root@localhost ~]# mysql -uroot -p Enter password: ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock‘ (111) 解决方案: [root@localhost ~]# service ...
分类:
数据库 时间:
2015-08-11 19:30:51
阅读次数:
129
uva 10917 Walk Through the Forestgbn最近打算穿过一个森林,但是他比较傲娇,于是他决定只走一些特殊的道路,他打算只沿着满足如下条件的(A,B)道路走:存在一条从B出发回家的路,比所有从A出发回家的路径都短。你的任务是计算一共有多少条不同的回家路径。其中起点的编号为1,终点的编号为2.
Input多组数据输入,每组数据第一行输入n,m(1<=n<=1000)表示点的...
分类:
其他好文 时间:
2015-08-11 10:13:39
阅读次数:
99
一、什么是Volley?Volley is an HTTP library that makes networking for Android apps easier and most importantly, faster. Volley is available through the open...
分类:
其他好文 时间:
2015-08-10 00:10:52
阅读次数:
131
题目传送门 1 /* 2 01背包(类):dp[i][j][k] 表示从(i, j)出发的和为k的方案数,那么cnt = sum (dp[1][i][s]) 3 状态转移方程:dp[i][j][k] = dp[i+1][j][k-c] + dp[i+1][j+1...
分类:
其他好文 时间:
2015-08-09 18:28:05
阅读次数:
137
连接Mysql提示Can’t connect to local MySQL server through socket的解决方法 2013年9月6日 aiezu 发表评论 阅读评论 mysql,Mysqldump,Mysqladmin,php连接mysql服务常会提示下面错误: ERROR 2002 (HY000): Ca...
分类:
数据库 时间:
2015-08-06 18:50:47
阅读次数:
289
Volley is an HTTP library that makes networking for Android apps easier and most importantly, faster. Volley is available through the openAOSPreposito...
分类:
移动开发 时间:
2015-08-06 12:31:54
阅读次数:
154
刚刚遇到这个报错,我无语了,我这么个菜逼,咋解决,还好师兄(付付)解决了,付付真棒,在此记录一下,以供学习Can 't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock '(2) ";1.查日志(首先还是看...
分类:
数据库 时间:
2015-08-05 00:37:08
阅读次数:
212
Download the zip file from http://dev.mysql.com/downloads/connector/j/5.0.html And then Extract to "mysql-connector-java-5.0.8" file. Open the Eclipse...
分类:
数据库 时间:
2015-08-03 20:39:09
阅读次数:
168
DescriptionWrite a program that finds and displays all pairs of 5-digit numbers that between them use the digits 0 through 9 once each, such that the ...
分类:
其他好文 时间:
2015-08-02 21:20:10
阅读次数:
235
题目大意:有一个人工作完了,要回家了。家在节点2,办公室在节点1。如果选择A回家的最短路比选择B回家的最短路小,那么他就可以走A点回家,问这个人有多少种回家的方法解题思路:先跑一遍最短路,求出每个节点到家的最短距离,然后进行判断
设dp[i]为从i点到家有多少种方法,如果d[i] > d[j](d数组表示到家的最短距离)
那么dp[i] += dp[j]#include
#in...
分类:
其他好文 时间:
2015-08-01 01:10:42
阅读次数:
109