首先代码拿上1:单例2:通知3:代理4:block方法5:NSUSERDEFAULT(沙盒文件)先是单例类:.h文件@interface DataSource : NSObject@property (nonatomic, strong) NSString *myName;//单例的属性,用于传值+...
分类:
其他 时间:
2015-09-01 21:26:33
收藏:
0 评论:
0 赞:
0 阅读:
253
1. 比赛中评测会有些慢,偶尔还会碰到隔10分钟以上才返回结果的情况,这段时间不能等结果,必须开工其他题,如果WA,两道题同时做。交完每道题都要先打印。2.比赛时发的饭不是让你当时就吃的,那是给你赛后吃的。基本上比赛中前几名的队都没人吃,除非领先很多。3.很多选手,尤其是第一次参加比赛的,到一个新环...
分类:
其他 时间:
2015-09-01 21:26:15
收藏:
0 评论:
0 赞:
0 阅读:
314
前言 本章的两个模型都是对数线性模型。 逻辑斯蒂分布 如果变量X服从逻辑斯蒂分布,那么X的分布一定是y轴对称的。曲线在中心部分增长的较快。两端增长缓慢。 二项逻辑斯蒂回归模型 其本质就是条件概率P(Y|X)。也就意味着给定X,求出最大可能的Y来。 Y取值只有1和0。 考虑条件概率分布。 逻辑斯蒂回归...
分类:
其他 时间:
2015-09-01 21:26:03
收藏:
0 评论:
0 赞:
0 阅读:
419
1 #include 2 #include 3 4 void replaceBlank(char *str); 5 6 int main() 7 { 8 char str[32]; 9 gets_s(str,32);10 replaceBlank(str);11 ...
分类:
其他 时间:
2015-09-01 21:25:53
收藏:
0 评论:
0 赞:
0 阅读:
373
从上往下打印二叉树的每个节点,同一层的节点按照从左到右的顺序打印。 从上到下打印二叉树的规律:每一次打印一个节点的时候,如果该节点有子节点,则把该节点的子节点放到一个队列的末尾。接下来到队列的头部取出最早进入队列的节点,重复前面的打印操作,直到队列中所有的节点都被打印出来为止。 struct...
分类:
其他 时间:
2015-09-01 21:25:23
收藏:
0 评论:
0 赞:
0 阅读:
356
去网上搜题解大多数都是说论文,搜了论文看了看,写的确实挺好,直接复制过来。不过代码中有些细节还是要注意的,参考这篇http://blog.sina.com.cn/s/blog_6d5aa19a0100o73m.html一段设X为满足ii,那么i对答案的贡献为B[i]-i。显然,随着i的增大,B[i]...
分类:
其他 时间:
2015-09-01 21:25:13
收藏:
0 评论:
0 赞:
0 阅读:
357
Question: Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.Analysis: 该问题是将输入的罗马数字的字符串转化为整数。 方...
分类:
其他 时间:
2015-09-01 21:25:03
收藏:
0 评论:
0 赞:
0 阅读:
325
set_include_path("123/");get_include_path — 获取当前的 include_path 配置选项string get_include_path ( void )function initialize() {set_include_path(get_include...
分类:
其他 时间:
2015-09-01 21:24:43
收藏:
0 评论:
0 赞:
0 阅读:
251
Plan for search engine optimization and accessibility使用analytical tools分析HTML,如SEO toolkit from MS, Webmaster Tools from Google, W3C Markup Validation...
分类:
其他 时间:
2015-09-01 21:24:33
收藏:
0 评论:
0 赞:
0 阅读:
284
一、前言图是一种重要的数据结构,本文主要表示图像的无向图。所谓无向图是指,图的节点间通过没有方向的边连接。无向图的表示:无向图G=,其中:1.V是非空集合,称为顶点集。2.E是V中元素构成的无序二元组的集合,称为边集。对于图像来说,每一个像素都可以看做是一个节点,根据具体节点连接选择方式的不同,可以...
分类:
其他 时间:
2015-09-01 21:24:14
收藏:
0 评论:
0 赞:
0 阅读:
409
∑lcm(i,n) = ∑ i*n/(i,n) = ∑d|n∑(x,n)=d x*n/d = ∑d|n∑(t,n/d)=1t*n = n∑d|nf(d). f(d)表示1~d中与d互质的数的和, 即f(d) = d*φ(d)/2(d>=2). 然后O(n)筛φ, 每次询问暴力算即可...最大是100...
分类:
其他 时间:
2015-09-01 21:24:03
收藏:
0 评论:
0 赞:
0 阅读:
555
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:22:13
收藏:
0 评论:
0 赞:
0 阅读:
274
题意:告诉你那n个点以及m条单向边。询问你从s点到e点最短路和比最短路长度大一的路一共有多少条。思路:dijkstra变形。分别从起点和终点求一边dijkstra。用cnt数组分别记录从起点到达第i个点且长度为最短长度的路径数以及从原点到达第i个点且长度为最短长度的路径数。_cnt数组记录到第i个节...
分类:
其他 时间:
2015-09-01 21:21:53
收藏:
0 评论:
0 赞:
0 阅读:
265
题意:问一个数字能被多少种连续的质数相加得到。解法:一开始没看见是连续的……SB了半天……后来打了个表……就这样吧代码:#include#include#include#include#include#include#include#include#include#include#include#i...
分类:
其他 时间:
2015-09-01 21:21:13
收藏:
0 评论:
0 赞:
0 阅读:
202
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:20:43
收藏:
0 评论:
0 赞:
0 阅读:
226
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:20:33
收藏:
0 评论:
0 赞:
0 阅读:
345
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:20:03
收藏:
0 评论:
0 赞:
0 阅读:
230
表单提交中get和post方式的区别有5点 1.get是从服务器上获取数据,post是向服务器传送数据。 2.get是把参数数据队列加到提交表单的ACTION属性所指的URL中,值和表单内各个字段一一对应,在URL中可以看到。post是通过HTTPpost机制,将表单内各个字段与其内容放置在HTML...
分类:
其他 时间:
2015-09-01 21:18:33
收藏:
0 评论:
0 赞:
0 阅读:
242
//兼容低版本的array_column public function array_column($input, $columnKey, $indexKey = NULL) { $columnKeyIsNumber = (is_numeric($columnKey)) ? TRUE : FALS....
分类:
其他 时间:
2015-09-01 21:18:23
收藏:
0 评论:
0 赞:
0 阅读:
359
Quan Yuan, Gao Cong, Zongyang Ma, Aixin Sun, Nadia Magnenat-ThalmannProceeding of the 36th international ACM SIGIR conference介绍随着移动设备的日益普及和大量基于地理位置的社交...
分类:
其他 时间:
2015-09-01 21:18:13
收藏:
0 评论:
0 赞:
0 阅读:
656