https://leetcode.com/problems/zigzag-conversion/The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may...
分类:
其他好文 时间:
2015-09-01 21:23:47
阅读次数:
230
题意:告诉你那n个点以及m条单向边。询问你从s点到e点最短路和比最短路长度大一的路一共有多少条。思路:dijkstra变形。分别从起点和终点求一边dijkstra。用cnt数组分别记录从起点到达第i个点且长度为最短长度的路径数以及从原点到达第i个点且长度为最短长度的路径数。_cnt数组记录到第i个节...
分类:
其他好文 时间:
2015-09-01 21:23:18
阅读次数:
230
题意:问一个数字能被多少种连续的质数相加得到。解法:一开始没看见是连续的……SB了半天……后来打了个表……就这样吧代码:#include#include#include#include#include#include#include#include#include#include#include#i...
分类:
其他好文 时间:
2015-09-01 21:22:08
阅读次数:
216
1 #include 2 #include 3 #include 4 #include 5 6 void reverse(char *str); 7 8 int main() 9 {10 char str[128];11 while(gets_s(str,128) != NUL...
分类:
其他好文 时间:
2015-09-01 21:22:01
阅读次数:
221
Different Ways to Add ParenthesesGiven a string of numbers and operators, return all possible results from computing all the different possible ways t...
分类:
其他好文 时间:
2015-09-01 21:22:59
阅读次数:
217
1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 long long dp[100010]; 8 int start[100010]; 9 int arr[100010];10 11 int main()12 {1...
分类:
其他好文 时间:
2015-09-01 21:22:52
阅读次数:
197
表单提交中get和post方式的区别有5点 1.get是从服务器上获取数据,post是向服务器传送数据。 2.get是把参数数据队列加到提交表单的ACTION属性所指的URL中,值和表单内各个字段一一对应,在URL中可以看到。post是通过HTTPpost机制,将表单内各个字段与其内容放置在HTML...
分类:
其他好文 时间:
2015-09-01 21:18:42
阅读次数:
535
//兼容低版本的array_column public function array_column($input, $columnKey, $indexKey = NULL) { $columnKeyIsNumber = (is_numeric($columnKey)) ? TRUE : FALS....
分类:
其他好文 时间:
2015-09-01 21:20:01
阅读次数:
223
Quan Yuan, Gao Cong, Zongyang Ma, Aixin Sun, Nadia Magnenat-ThalmannProceeding of the 36th international ACM SIGIR conference介绍随着移动设备的日益普及和大量基于地理位置的社交...
分类:
其他好文 时间:
2015-09-01 21:18:51
阅读次数:
586
ImageJ的相关信息可以直接从其官网了解,从这个网站上可以下载到其运行程序,并可以得到相关的源码,在源码的基本上我们可以进行插件开发。1)了解插件的类型及其接口: a) PlugIn:启动该插件时不需要打开一幅图象 b) PlugInFilter:启动该插件时,需要传递给该插件一幅打开图象...
分类:
其他好文 时间:
2015-09-01 21:18:53
阅读次数:
676
学校上课时老师实现的省市联动都是通过服务器端控件的IsPostback属性实现的,然而我知道这在实际应用中一点用也没有,选项变一下就刷新一下页面,根本不现实,事实上网上看到的省市联动都是无刷新的.但我不知道怎样实现,没有学过ajax,也没有任何思路,学过ajax后,又想起了这个恋恋不忘的问题,于是自...
分类:
其他好文 时间:
2015-09-01 21:18:14
阅读次数:
229
1 #include 2 #include 3 4 int main() 5 { 6 FILE *fp_read, *fp_write; 7 int i,j,k,l; 8 float avg; 9 fopen_s(&fp_read,"E:\\score.txt",...
分类:
其他好文 时间:
2015-09-01 21:20:12
阅读次数:
184
1058. A+B in Hogwarts (20)时间限制50 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueIf you are a fan of Harry Potter, you would know the world of magic...
分类:
其他好文 时间:
2015-09-01 21:18:53
阅读次数:
260
抽象工厂模式是我们项目开发中非常常见的一种模式,属于创建型模式。那么什么是模式呢?世上本没有所谓的模式,用的人多了也就有了。我们经常看到的各种框架,其实就是各种设计模式的一个集合。模式就是前人对解决某一类问题的经验方法的总结,打个比方,取水,你可以自己钻井,也可以通过安装自来水。那使用什么样的方式来...
分类:
其他好文 时间:
2015-09-01 21:19:36
阅读次数:
248
1049. Counting Ones (30)时间限制10 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThe task is simple: given any positive integer N, you are supposed to...
分类:
其他好文 时间:
2015-09-01 21:16:52
阅读次数:
264
1 //统计每个字符出现的次数 2 #include 3 #include 4 #include 5 6 int main() 7 { 8 FILE *fp_read; 9 char ch;10 int count[26];11 int index;12 ...
分类:
其他好文 时间:
2015-09-01 21:15:44
阅读次数:
223