DescriptionYou have just moved from Waterloo to a big city. The people here speak an incomprehensible dialect of a foreign language. Fortunately, you ...
分类:
其他好文 时间:
2014-07-31 20:04:07
阅读次数:
212
前言:朋友咨询我说执行简单的update语句失效,症状如下:mysql> update order_info set province_id=15 ,city_id= 1667 where order_from=10 and order_out_sn='1407261241xxxx';ERROR 1205 (HY000): Lock wait timeout exceeded; try re...
分类:
其他好文 时间:
2014-07-31 13:25:26
阅读次数:
180
Description
You have just moved from Waterloo to a big city. The people here speak an incomprehensible dialect of a foreign language. Fortunately, you have a dictionary to help you understand them....
分类:
其他好文 时间:
2014-07-31 00:07:15
阅读次数:
222
iOS系统自带定位,用CLLocationManager就可以轻松的实现定位的操作,获得的是一组经纬度,当然,也可以根据给出的经纬度获取相应的省份、城市、街道等信息,下面就看一个根据经纬度获得城市的demo:因为获取经纬度需要CLLocationManager类,而这个类包含在CoreLocation框架中,..
分类:
移动开发 时间:
2014-07-30 03:25:43
阅读次数:
386
这题是上一题的升级版关键在于条形图的构造,逐行处理输入的矩阵,遇到'F'则在上一次的条形图基础上再加1,遇到'R'则置为0然后用上一题的算法,求每行对应条形图的最大矩阵的面积。另外:本来是debug都不用就1A的节奏。可在输入数据上,一开始我用的是scanf读入字符 和 getchar跳过无效字符,...
分类:
其他好文 时间:
2014-07-29 21:18:22
阅读次数:
280
Beautiful People
Time Limit: 5 Seconds
Memory Limit: 32768 KB Special Judge
The most prestigious sports club in one city has exactly N members. Each of its members is strong and bea...
分类:
其他好文 时间:
2014-07-28 00:09:59
阅读次数:
413
Problem Description
FatMouse has stored some cheese in a city. The city can be considered as a square grid of dimension n: each grid location is labelled (p,q) where 0 <= p < n and 0 <= q < n. At e...
分类:
其他好文 时间:
2014-07-28 00:02:49
阅读次数:
319
题目链接题意:给一个m*n的矩阵, 其中一些格子是空地(F), 其他是障碍(R)。找一个全部由F组成的面积最大的子矩阵, 输出其面积乘以3的结果。思路:如果用枚举的方法,时间复杂度是O(m^2 n^2);因为不但要枚举每一个点,而且矩阵的大小不知道,所以还要枚举长和宽。可以通过枚举每一个点,求该点所...
分类:
其他好文 时间:
2014-07-27 10:15:02
阅读次数:
171
Description
The Eastowner city is perpetually haunted with water supply shortages, so in order to remedy this problem a new water-pipe has been built. Builders started the pipe from both ends simul...
分类:
其他好文 时间:
2014-07-26 17:18:12
阅读次数:
313
Description
Christmas is coming to KCM city. Suby the loyal civilian in KCM city is preparing a big neat Christmas tree. The simple structure of the tree is shown in right picture.
The tree can ...
分类:
其他好文 时间:
2014-07-26 15:01:50
阅读次数:
300