码迷,mamicode.com
首页 >  
搜索关键字:long position    ( 28572个结果
hdu 4869
一个机智题,可惜比赛的时候没有机智出来#include#include#include#include#define ll long long#define mod 1000000009#define maxn 100009using namespace std;ll c[maxn];void gc...
分类:其他好文   时间:2014-07-22 23:37:17    阅读次数:366
UVA10673 上下界问题
1 #include 2 #include 3 using namespace std; 4 #define LL long long 5 LL a,b,m,n,d; 6 void ex_gcd(LL a,LL b,LL &x,LL &y,LL &d) 7 { 8 if(b==0){ 9...
分类:其他好文   时间:2014-07-22 23:34:07    阅读次数:358
Ultra-QuickSort
poj2299:http://poj.org/problem?id=2299题意:就是求逆序对。题解:直接用树状数组,但是这一题要你离散化,如果用之前的vector来离散化的话,会T的,自己用一个数组搞一下,然后二分查找,用lower_bound来搞一下,比vector要快。还有,答案要用long ...
分类:其他好文   时间:2014-07-22 23:32:37    阅读次数:285
10055 - Hashmat the Brave Warrior
#include#include#include#includeusing namespace std;//typedef __int64 lld;typedef long long lld;int main(){ lld n,m,ans; //while(scanf("%I64d%I6...
分类:其他好文   时间:2014-07-22 23:19:07    阅读次数:194
CSUOJ 1343
1343: Long LongTime Limit:1 SecMemory Limit:128 MBSubmit:180Solved:48[Submit][Status][Web Board]Description 现在有两个单调递增序列,第一个序列有N个整数,第二个序列有M个整数,现在你可以从第一...
分类:其他好文   时间:2014-07-22 23:13:12    阅读次数:232
linux内核中与进程相关的数据结构(基于linux-mainline-rc4)
1.进程描述符 struct task_struct { volatile long state; ....... struct list_head tasks; ....... struct mm_struct *mm, *active_mm; ....... struct v...
分类:系统相关   时间:2014-07-22 22:47:52    阅读次数:371
P64
#include void fun(long s,long *t) { int d; long s1=1; *t=0; while(s>0) { d=s%10; if(d%2!=0) {*t=d*s1+*t; s1*=10; } s/=10; } } void main() { long s,t; printf("\nPlease enter:"); sc...
分类:其他好文   时间:2014-07-22 22:34:12    阅读次数:201
D. Multiplication Table 二分查找
刚做这道题根本没想到二分,最关键是没想出来如何统计在这个矩阵中比一个数小的有几个怎么算,造成自己想了好久最后看了别人的提示才做出来。哎!好久不做题太弱了 #include #include using namespace std; int main(){ // freopen("in.txt","r",stdin); long long n,m,k; while(cin>>...
分类:其他好文   时间:2014-07-22 22:33:55    阅读次数:192
java基础数据类型char
java基础类型数据类型大小范围默认值 byte(字节) 8-128-1270 shot(短整型)16-32768-327680 int(整型)32-2147483648-21474836480 long(长整型)64-9233372036854477808-92333720368544778080 float(浮点型)32-3.40292347E+38-3.40292347E+380.0f double(双精度) 64-1.79769313486..
分类:编程语言   时间:2014-07-22 18:25:12    阅读次数:307
springData jpa update delete
使用@Modifying+@Query实现springData对数据的updatedeletepublicinterfaceICustomerextendsJpaRepository<Customer,Long> { @Modifying @Query("deleteCustomerwhereisLogicDel=0anddispatchDate=?1") publicintdeleteCustomer(DatedispatchDate); @Modifying @Query(..
分类:编程语言   时间:2014-07-22 18:19:02    阅读次数:261
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!