题目连接:Game Of RotationMark is an undergraduate student and he is interested in rotation. A conveyor belt competition is going on in the town which Mark...
分类:
其他好文 时间:
2014-08-02 23:21:14
阅读次数:
434
题目来源:POJ 2356 Find a multiple
题意:n个数 选出任意个数 使得这些数的和是n的倍数
思路:肯定有解 并且解是连续的一段数
证明:
假设有m个数 a1,a2,a3...am s1 s2 s3...sm为前缀和 s1 = a1 s2 = a1+a2 s3 = a1+a2+a3... sm = a1+a2+a3+...+am
1.如果某个前缀和si%m =...
分类:
其他好文 时间:
2014-08-02 21:01:54
阅读次数:
312
作为一名Android应用开发程序猿,最痛苦的事莫过于在屏幕适配了,这与历史原因有关,具体就不深究了。直到最近才搞明白dpi是怎么换算的,在开发的过程中,一个应用运行的屏幕标准应该是分辨率为320x480密度为160dpi的屏幕上,所以所有放在drawable、drawable-mdpi、value...
分类:
移动开发 时间:
2014-08-02 18:11:23
阅读次数:
314
Description
Gigel has a strange "balance" and he wants to poise it. Actually, the device is different from any other ordinary balance.
It orders two arms of negligible weight and each arm's lengt...
分类:
其他好文 时间:
2014-08-02 15:30:13
阅读次数:
235
In a typical multiple-tier implementation, the steps for creating and refreshing a DataSet, and in turn, updating the original data are to:Build and f...
分类:
其他好文 时间:
2014-08-02 15:17:43
阅读次数:
225
He universal voltage coming from cheap ghd hair straightener all ghd flat irons is probably one in the most versatile coming from all its features sin...
分类:
其他好文 时间:
2014-08-02 15:12:03
阅读次数:
545
Watson gives an array A1,A2...AN to Sherlock. Then he asks him to find if there exists an element in the array, such that, the sum of elements on its ...
分类:
其他好文 时间:
2014-08-02 12:36:13
阅读次数:
185
$ adb devices | tail -n +2 | cut -sf 1 | xargs -I X adb -s X install pathto/myapp-release.apk
分类:
移动开发 时间:
2014-08-02 12:30:23
阅读次数:
181
1. 2D射影几何与变换这一章的内容主要在介绍一些基本的几何概念和几何符号,以便理解后文中的内容。更具体的来说,主要包含了平面射影变换的几何知识。1.1 平面几何平面几何是个非常简单的概念,无非是点,线,再就是点和线之间的关系。1.2 2D射影平面(Projective plane)众所周知,在平面...
分类:
其他好文 时间:
2014-08-02 01:47:12
阅读次数:
194
//1.等比率缩放-(UIImage*)scaleImage:(UIImage*)imagetoScale:(float)scaleSize{UIGraphicsBeginImageContext(CGSizeMake(image.size.width*scaleSize,image.size.he...
分类:
其他好文 时间:
2014-08-01 22:50:42
阅读次数:
201