<delete id="deleteCTQ" parameterType="java.lang.String"> DELETE FROM sqm_product_ctq_current where guid in <foreach item="idItem" collection="array" open="(" separator="," close=")"> #{idItem} </fo...
分类:
其他好文 时间:
2014-11-02 10:56:56
阅读次数:
162
The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font fo...
分类:
其他好文 时间:
2014-10-31 23:35:49
阅读次数:
315
最近在Eclipse下每次更新ADT和SDK后都报一些错误,比如DDMS files not found: D:\android-sdk-windows-1.6_r1\android-sdk-windows-1.6_r1\platform-tools\adb.exeDDMS files not fo...
分类:
其他好文 时间:
2014-10-30 10:52:40
阅读次数:
196
Givennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.Fo...
分类:
移动开发 时间:
2014-10-30 01:41:48
阅读次数:
169
题目链接:点击打开链接
给定n表示有n个格子
下面每个格子为O的概率是多少。
对于一段连续 x 个O的价值就是 x*x ;
问:
获得的价值的期望是多少。
思路:
把公式拆一下。。
#include
const int N = 100005;
double dp[N][2], p[N];
int main(){
int n;
scanf("%d", &n);
fo...
分类:
其他好文 时间:
2014-10-29 14:56:09
阅读次数:
188
在开发机器上效果如下:而到其他电脑上效果如下:解决办法:将窗体的AutoScaleMode属性设置为None,尝试一下,应该可以了。关于AutoScaleMode的属性,可以参考http://technet.microsoft.com/zh-cn/magazine/system.windows.fo...
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.Fo...
分类:
其他好文 时间:
2014-10-28 07:02:27
阅读次数:
171
pxpx方便,但是由于它是绝对值,不能随着浏览器的放大和缩小而改变,因此往往会影响我们原先的布局,造成视觉干扰。emem是相对值,解决了随浏览器放大缩小而改变的问题,但是它仅仅是相对于其父元素,假设你在里定义了font-size:10px,那么以为父元素的子元素的font-size可以这样定义{fo...
分类:
其他好文 时间:
2014-10-27 12:29:11
阅读次数:
190
#include#includeusing namespace std;void main(){int i,a,k=1;cout>a;if(a==0 || a==1)cout<<"不是素数! "<<endl;else if(a==2||a==3)cout<<" 是素数"<<endl;else {fo...
分类:
其他好文 时间:
2014-10-27 12:26:30
阅读次数:
148
题目:Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space fo...
分类:
其他好文 时间:
2014-10-25 22:57:43
阅读次数:
155