1、最简单查询select * from car;2、查询指定列select name,oil,powers from car;3、对查出的列名修改名字select name as '车名',oil as '油量',powers as '动力' from car;4、按条件查询select name ...
分类:
Web程序 时间:
2018-06-03 14:28:36
阅读次数:
173
Majority of the people try to stain their deck themselves. While you think of staining wood, picture of a can of some oil based stain emerges in mind. ...
分类:
其他好文 时间:
2018-05-28 14:56:36
阅读次数:
156
[本博文非博主原创,均摘自:刘汝佳《算法竞赛入门经典》(第2版) 6.4 图] [程序代码根据书中思路,非独立实现] 例题6-12 油田(Oil Deposits,UVa572) 输入一个m行n列的字符矩阵,统计字符“@”组成多少个八连块。如果两个字符“@”所在的格子相邻(横、纵或者对角线方向),就 ...
分类:
其他好文 时间:
2018-05-27 12:20:30
阅读次数:
286
题意:多组案例,每组案例输入一个m行n列的字符矩阵,统计字符‘@’组成多少个连通块。如果两个字符‘@’所在的格子相邻(横、竖或对角线),则说明它们属于同一连通块。 ...
分类:
其他好文 时间:
2018-05-17 13:53:18
阅读次数:
165
One day a highly important task was commissioned to Vasya — writing a program in a night. The program consists of n lines of code. Vasya is already ex ...
分类:
其他好文 时间:
2018-05-13 22:03:00
阅读次数:
190
1 #include 2 #include 3 #include 4 using namespace std; 5 6 int n, m; 7 const int maxn = 105; 8 string s[maxn]; 9 int f[8][2] = { {0, 1},{1, 0},{-1, 0... ...
分类:
其他好文 时间:
2018-04-29 15:28:05
阅读次数:
164
之前用过 Laravel,框架自带的 artisan 命令,用得爽到爆。现在工作需要,要学习 FuelPHP,首先看到框架目录结构,有 coposer.json 框架可以用 composer 管理,一定也有自己的命令工具。 对于新手来说,不妨先用命令自动生成文件,然后看这些生成的文件了解基本的 CR ...
分类:
Web程序 时间:
2018-04-27 02:32:38
阅读次数:
825
题意:给你一个地图,求联通块的数量。 题解: for(所有还未标记的‘@’点) 边dfs边在vis数组标记id,直到不能继续dfs。 输出id及可; ac代码: ...
分类:
移动开发 时间:
2018-04-12 22:33:30
阅读次数:
199
题目链接 题目大意: 求图中@连通块的个数,只要两个@相邻就算它们是连通的(斜方向的也算相邻) 2018-03-31 ...
分类:
移动开发 时间:
2018-03-31 23:57:25
阅读次数:
235