public class Solution { public int GetUglyNumber_Solution(int index) { if(index<=0){ return 0; } int[] p = new int[index]; p[0]=1; int p2=0; ... ...
分类:
其他好文 时间:
2019-05-16 21:49:57
阅读次数:
268
Corn Fields Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 21931 Accepted: 11470 Description Farmer John has purchased a lush new rectangu ...
分类:
其他好文 时间:
2019-05-16 20:29:33
阅读次数:
171
```c++ include using namespace std; typedef struct{ int l,r,w; }Node; Node nodes[1000000]={0,0,0}; int x,y,ans,mod,single; void build(int l,int r,int ...
分类:
其他好文 时间:
2019-05-16 20:23:20
阅读次数:
166
多表返回实体 hql 不支持on List list = baseDao.findBySQL("SELECT MAX(ID) FROM smsserver_out"); Integer maxId = (Integer)list.get(0); ...
分类:
Web程序 时间:
2019-05-16 18:02:39
阅读次数:
129
今天,遇到了一个随机验证码的问题,就顺便说一下这个验证码怎么搞 相信大家应该对随机数不陌生 就是Math里的方法 这里要用到一个知识点 就是利用ASCII码转字符 先附上随机数代码 function suiji (m,n){ var sj = parseInt(Math.random()*(n-m+ ...
分类:
其他好文 时间:
2019-05-16 17:59:40
阅读次数:
94
输入: 123 输出: 321 输入: -123 输出: -321 int reverse(int x) { int res = 0; while(x) { int tmp = x%10; x/=10; res = res * 10 + tmp; } return res; } ...
分类:
编程语言 时间:
2019-05-16 17:44:22
阅读次数:
128
Given an integer n, generate all structurally unique BST's (binary search trees) that store values 1 ... n. Example: ...
分类:
其他好文 时间:
2019-05-16 15:12:41
阅读次数:
120
首先,canvas:固定在浏览器上的画布,浏览器支持Internet Explorer 9、Firefox、Opera、Chrome 以及 Safari 支持 及其属性和方法。canvas为我们敞开了新一扇大门。属于HTML5中新增的一个标签,看起来与其他标签区别不大,在验证码之前,应该学习canv ...
分类:
其他好文 时间:
2019-05-16 13:56:08
阅读次数:
118
注:lock是可重入锁 lock锁分为两类:公平锁和非公平锁。按照本人的理解,公平锁指的是在多个线程同时获取锁时,会按照该线程的请求先后顺序来决定哪个线程优先获取到锁(即:根据同步队列中的线程顺序来决定),非公平锁则是自由竞争,和线程的等待时间无关。 而且非公平锁可能出现一个线程连续获取锁的现象(原 ...
分类:
其他好文 时间:
2019-05-16 12:29:26
阅读次数:
592
marquee标签内不能用 ul li ,要用table tr td 才可以 ...
分类:
其他好文 时间:
2019-05-16 10:56:35
阅读次数:
267