码迷,mamicode.com
首页 >  
搜索关键字:long position    ( 28572个结果
android 工具类之SharePreference
1 /** 2 * SharedPreferences的一个工具类,调用setParam就能保存String, Integer, Boolean, Float, Long类型的参数 3 * 同样调用getParam就能获取到保存在手机里面的数据 4 * @author xiaanmin...
分类:移动开发   时间:2014-07-22 08:01:35    阅读次数:374
Search Insert Position leetcode java
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or...
分类:编程语言   时间:2014-07-22 00:39:35    阅读次数:263
hoj Counting the algorithms
贪心加树状数组 给出的数据可能出现两种情况,包含与不包含,但我们从右向左删就能避免这个问题; #include #include #include using namespace std; const int maxn=200010; int f[maxn],l[maxn],a[maxn]; long long tree[maxn]; int n; inline int lowbit(int ...
分类:其他好文   时间:2014-07-22 00:27:36    阅读次数:210
UVA 684 - Integral Determinant(行列式变换)
UVA 684 - Integral Determinant 题目链接 题意:给定一个行列式,求出值 思路:利用线性代数中的列相减,然后不断降阶即可,就是要用分数去写 代码: #include #include #include using namespace std; const int N = 35; long long gcd(long long a...
分类:其他好文   时间:2014-07-22 00:26:37    阅读次数:207
Search for a Range leetcode java
题目:Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the....
分类:编程语言   时间:2014-07-21 11:14:07    阅读次数:203
SPOJ 10234. Here Be Dragons
The Triwizard Tournament's third task is to negotiate a corridor of many segments, and reach the other end. The corridor is N segments long. The ith s...
分类:其他好文   时间:2014-07-21 09:02:45    阅读次数:217
最长公共上升子序列(LCIS)ZOJ 2432
立方算法: #include #include #include #include #define M 505 using namespace std; typedef long long LL; LL a[M],b[M]; int dp[M][M]; int main() { //freopen("in.txt","r",stdin); int T; cin>>T; ...
分类:其他好文   时间:2014-07-20 23:01:50    阅读次数:284
POJ3468A Simple Problem with Integers
#include #include #include using namespace std; struct CNode { int L,R; CNode* pLeft,* pRight; long long Inc; long long nSum; }; CNode Tree[200010]; int nCount=0; int Mid(CNode* pRoot)...
分类:其他好文   时间:2014-07-20 22:38:44    阅读次数:245
Codeforces 450 C. Jzzhu and Chocolate
//area=(n*m)/ ((x+1)*(k-x+1)) //1: x==0; //2: x=n-1 //3: x=m-1 # include long long max(long long x,long long y) { return x>y?x:y; } int main() { long long n,m,k,sum,t,ans; scanf("%lld%lld%lld",&...
分类:其他好文   时间:2014-07-20 22:27:13    阅读次数:172
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!