activity_main.xml activity_second.xml MainActivity.javapackage com.example.login;import android.os.Bundle;import andr...
分类:
其他好文 时间:
2015-02-10 23:05:06
阅读次数:
199
Problem Description
Now give you two integers n m, you just tell me the m-th number after radix point in 1/n,for example n=4,the first numble after point is 2,the second is 5,and all 0 followed
Inpu...
分类:
其他好文 时间:
2015-02-10 00:43:33
阅读次数:
174
Thanks for joining me for the second part of this two-part series on crash reporting services!Thefirst partintroduced you to the architecture of crash...
分类:
移动开发 时间:
2015-02-09 23:01:45
阅读次数:
416
1.自定义转场动画要写的代码很多,如果整个项目的转场动画都必须一致,则必须考虑把modal代码封装起来 secondVC *second = [[secondVC alloc] init]; second.modalPresentationStyle = UIModalPresentationCu....
分类:
移动开发 时间:
2015-02-09 00:36:27
阅读次数:
138
1. 系统默认modal出来的动画效果默认是从屏幕底部爬出来的- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ secondVC *second = [[secondVC alloc] init]; [self pr....
分类:
移动开发 时间:
2015-02-08 21:52:05
阅读次数:
774
题目链接:点击打开链接
题意:
有n个人去竞拍一件商品,下面给出n个区间表示每个人出的价是区间中随机的一个数(概率均等)
则第一名需要付的钱是第二名的竞拍价格(允许并列第一名)
求支付的钱的期望。
思路:
枚举付的钱,然后求付这个钱的概率,相乘后求和即可。
对于确定支付x元
分类讨论一下:
1、第一名出价大于x
枚举第一名,然后剩下来的人至少一个人出x元,其他人出
P(剩下...
分类:
其他好文 时间:
2015-02-08 19:30:15
阅读次数:
168
帧率 -- 帧率(Frame rate)是用于测量显示帧数的量度。所谓的测量单位为每秒显示帧数(Frames per Second,简称:FPS)或“赫兹”(Hz)。通俗来说,帧率是用来衡量显卡渲染能力的一个指标。显卡在处理图像数据时...
分类:
其他好文 时间:
2015-02-08 18:17:18
阅读次数:
209
http://www.apuebook.com/errata2e.html Welcome to the web site dedicated to the support of the second edition of Advanced Programming in the UNIX® Envi...
分类:
其他好文 时间:
2015-02-07 18:50:47
阅读次数:
228
点击打开链接
1009. K-based Numbers
Time limit: 1.0 second
Memory limit: 64 MB
Let’s consider K-based numbers, containing exactly N digits. We define a number to be valid if itsK-based ...
分类:
其他好文 时间:
2015-02-07 13:14:20
阅读次数:
142
Github上的"the way to Go"翻譯有時候真讓人搞不懂,我經常會暈,比如如果需要申明一个在外部定义的函数,你只需要给出函数名与函数签名,不需要给出函数体:func flushICache(begin, end uintptr) // implemented externally什麼意思...
分类:
其他好文 时间:
2015-02-06 14:31:45
阅读次数:
126