1617: Itself is Itself
Time Limit: 6 Sec Memory Limit: 128 MB
Submit: 21 Solved: 4
[Submit][Status][Web
Board]
Description
Zuosige always has bad luck. Recently, he is in hospital becau...
分类:
其他 时间:
2015-05-10 18:56:59
收藏:
0 评论:
0 赞:
0 阅读:
155
《1》TreeView树的基本操作
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Ta...
分类:
其他 时间:
2015-05-10 18:56:39
收藏:
0 评论:
0 赞:
0 阅读:
186
基于 TCP 的网络编程开发分为服务器端和客户端两部分,常见的核心步骤和流程如下:
connect()函数
对于客户端的 connect() 函数,该函数的功能为客户端主动连接服务器,建立连接是通过三次握手(这个后面再做介绍),而这个连接的过程是由内核完成,不是这个函数完成的,这个函数的作用仅仅是通知
Linux 内核,让 Linux 内核自动完成 TCP 3次握手连接,最后把连接...
分类:
其他 时间:
2015-05-10 18:56:29
收藏:
0 评论:
0 赞:
0 阅读:
149
方式一:将字符串反向输出来,不改变内存(递归实现)
void reverse_string(char *str)
{
/*遇到'\0'什么也不做,函数结束*/
if(*str == '\0')
;
else
{
/*输出下一个*/
reverse_string(str + 1);
cout<<*str;
}
}方式二:改变内存(交换法)
/*非递归实现:操作内存*/...
分类:
其他 时间:
2015-05-10 18:55:59
收藏:
0 评论:
0 赞:
0 阅读:
104
最近微信新增了一个功能:长按识别验证码。原理是这样的:检测长按事件---触发-->截取图片中的验证码关于长按,我们可以这么处理:1,点击开始时(onMouseDown||onTouchStart)触发时一个timer,并设定时间2,点击结束时(onMouseUp || onTouchEnd) 清除这...
分类:
其他 时间:
2015-05-10 18:54:38
收藏:
0 评论:
0 赞:
0 阅读:
129
在线Markdown,感觉还不错。一边写一边预览,要是不会还能操作工具栏. https://stackedit.io/editor感觉写Md很爽呀,而且还可以转换成Html.比纯文本的TxT的可读性也要方便呀,如果你写的Md发给别人。即使别人没有安装Md编译器,用线上的也能看出效果来,确实方便标题....
分类:
其他 时间:
2015-05-10 18:54:18
收藏:
0 评论:
0 赞:
0 阅读:
232
遇到 这样的 问题常用 EF 。实现 like 用 Contains("asd") 搞定 他生成的是 %asd% .如果 我希望 生成 asd%,怎么搞呢? StartsWith 搞定 ,%asd 当然是 EndsWith 搞定 。如果 是 qwe%zz 怎么搞呢。哇哈哈~~~using Syste...
分类:
其他 时间:
2015-05-10 18:54:09
收藏:
0 评论:
0 赞:
0 阅读:
312
package 先来先服务;import java.util.Scanner;public class Test1 { public static void main(String []args){ //用户输入作业个数,定义三个数组分别存储用户输入作业、后备队列作业、完成运行作...
分类:
其他 时间:
2015-05-10 18:53:49
收藏:
0 评论:
0 赞:
0 阅读:
165
题目:Write a function to find the longest common prefix string amongst an array of strings.代码:class Solution {public: string longestCommonPrefix(vect...
分类:
其他 时间:
2015-05-10 18:53:09
收藏:
0 评论:
0 赞:
0 阅读:
177
package com.atguigu.surveypark.dao.impl;import java.lang.reflect.ParameterizedType;import java.util.List;import javax.annotation.Resource;import org.h...
分类:
其他 时间:
2015-05-10 18:52:58
收藏:
0 评论:
0 赞:
0 阅读:
1172
题目传送门 1 /* 2 dp[i][1]/dp[i][0] 表示从左往右前i个,当前第i个放1或0的方案数 3 k -= dp[n][0] 表示当前放0的方案数不够了,所以必须放1,那么dp[n][0]个方案数都不能用了 4 相当于k减去这么多 5 详细解释:htt...
分类:
其他 时间:
2015-05-10 18:52:49
收藏:
0 评论:
0 赞:
0 阅读:
199
题目传送门 1 /* 2 题意:给出一个长为n的仅由小写英文字母组成的字符串,求它的回文串划分的元素的最小个数,并按顺序输出此划分方案 3 回文串+回溯:dp[i] 表示前i+1个字符(从0开始)最少需要划分的数量,最大值是i+1,即单个回文串; 4 之前设置ok[j...
分类:
其他 时间:
2015-05-10 18:52:29
收藏:
0 评论:
0 赞:
0 阅读:
236
题意:给出一组N个数,每次从中抽出一个数(第一和最后一个不能抽),该次的得分即为抽出的数与相邻两个数的乘积。直到只剩下首尾两个数为止。问最小得分是多少?链接:点我转移方程:dp[i][j]=dp[i][k]+dp[k][j]+a[i]*a[j]*a[k]这里的k一定是最后一步算的,所以乘以a[i]和...
分类:
其他 时间:
2015-05-10 18:52:19
收藏:
0 评论:
0 赞:
0 阅读:
203
Time Limit:1000MSMemory Limit:32767KB64bit IO Format:%I64d & %I64uHDU 1029Description"OK, you are not too bad, em... But you can never pass the next t...
分类:
其他 时间:
2015-05-10 18:51:59
收藏:
0 评论:
0 赞:
0 阅读:
206
本文主要记录了版本的回退,以及工作区,暂存区概念的理解。//开始之前,先回顾上次的内容,修改文件如下,并提交到版本库。Git is a distributed version control system.Git is free software distributed under the GPL....
分类:
其他 时间:
2015-05-10 18:51:25
收藏:
0 评论:
0 赞:
0 阅读:
1761
$items['items'] = array( l('Configure', 'admin/config'), l('Structure', 'admin/structure'),);$theme = theme('item_list', $items);1,判断是否所有的模块都加载...
分类:
其他 时间:
2015-05-10 18:51:14
收藏:
0 评论:
0 赞:
0 阅读:
245
1. 新建项目: Project -> New Project, 填一项目名称2. 选择源码位置: 3. 增加文件到项目,选好对应的文件夹,点击"Add Tree"4. 查找函数: F7,Source Insight需要分析一会5.输入需要查找的函数,如NtSuspendProcess 6. 查看函...
分类:
其他 时间:
2015-05-10 18:51:06
收藏:
0 评论:
0 赞:
0 阅读:
820
题目传送门 1 /* 2 题意:最少需要多少条线段能覆盖[0, m]的长度 3 贪心:首先忽略被其他线段完全覆盖的线段,因为选取更长的更优 4 接着就是从p=0开始,以p点为标志,选取 (node[i].l 8 #include 9 #include 10...
分类:
其他 时间:
2015-05-10 18:50:34
收藏:
0 评论:
0 赞:
0 阅读:
157
html文件: 省份城市 后台文件:C#版:pr...
分类:
其他 时间:
2015-05-10 18:50:23
收藏:
0 评论:
0 赞:
0 阅读:
224
一、点语法oc设计点语法的目的就是让其他语言的开发者能快速上手oc这门语言,oc点语法与java里面很像,那什么是点语法呢,点语法怎么用呢?1、点语法和set和get方法有关这里新建一个项目,添加一个Person类Person.h 1 // 2 // Person.h 3 // zijia ...
分类:
其他 时间:
2015-05-10 18:49:41
收藏:
0 评论:
0 赞:
0 阅读:
171