码迷,mamicode.com
首页 >  
搜索关键字:ll    ( 5333个结果
HDU 4998 Rotate 计算几何 2014 ACM/ICPC Asia Regional Anshan Online
题意: 有一个平面放在一个二维坐标轴上 给定n个操作 (x,y) p 表示把平面绕着(x,y) 逆时针转p弧度。 最后的结果相当于平面绕着(X, Y) 逆时针旋转了P弧度。 求:X,Y,P #include #include #include #include #include typedef long long ll; using namespace std; const...
分类:其他好文   时间:2014-09-13 18:49:35    阅读次数:192
codeforce Number of Ways(暴力)
1 #include 2 #include 3 #include 4 #include 5 #define N 500005 6 using namespace std; 7 typedef long long LL; 8 LL prefix[N], suffix[N], num[N]; 9 LL....
分类:其他好文   时间:2014-09-13 17:10:55    阅读次数:122
只管往前走
突然想,放弃好了,放弃这些,放弃全部。然后又赶紧对自己说,再坚持一下,一下下。Just turn off the feelings, then I'll go through all of this.只管往前走,就好了。
分类:其他好文   时间:2014-09-13 10:30:44    阅读次数:211
【hdu】I Hate It(线段树,结点修改求区间最大值)
线段树的模板题,还是二分递归。 #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long LL; #define MAXD 10 #def...
分类:其他好文   时间:2014-09-12 20:44:04    阅读次数:222
POJ 3358
此题的主要还是如何把小数化作分数来解答。设p/q。对于二进制(三进制,四进制一样),若p>q便商1,取mod,p*2-->p,然后再作p/q,若p#include #include #include #define LL __int64using namespace std;LL fac[10000...
分类:其他好文   时间:2014-09-12 20:38:14    阅读次数:258
HDU 4911
http://acm.hdu.edu.cn/showproblem.php?pid=4911一场多校的签到题,树状数组离散化求逆序数#include #include #include #include using namespace std ;typedef __int64 ll ;int n,k...
分类:其他好文   时间:2014-09-12 20:35:44    阅读次数:233
apache负载均衡的实现
1、查看是否有mod_proxy_http.so、mod_proxy_balancer.so、mod_proxy.so三个模块#ll/usr/local/apache2/modules2、加载模块#cd/usr/local/src/httpd-2.2.23/modules/proxy/#/usr/local/apache2/bin/apxs-c-imod_proxy.cproxy_util.c#/usr/local/apache2/bin/apxs-c-imod_proxy_..
分类:其他好文   时间:2014-09-12 17:24:24    阅读次数:176
转载翻译简介:关于Flash and C++ Native Extension C++扩展ANE——2
做人呢就要有始有终不是么。。我还是把这个翻译完了事。Coding with C++With the C++ project finally set up, it's time to start adding some code. We'll start with the NativeAdd.h fi...
分类:编程语言   时间:2014-09-12 17:06:33    阅读次数:252
POJ 3045 Cow Acrobats (想法题)
题目链接:POJ 3045 Cow Acrobats 题意:有n只牛叠罗汉,危险指数的计算是 该层牛以上的牛重量总和减去这层牛的强度,求使最大的危险指数中的最小值。 思路:根据w+s排序,最大的在最下面,道理很简单,危险指数: sum-(w+s),(sum该层牛以上的牛重量总和)。 AC代码: #include #include #include #define ll __...
分类:其他好文   时间:2014-09-12 13:34:03    阅读次数:194
UVA10892 - LCM Cardinality(分解质因子)
题目链接 题意:输入正整数n,统计有多少对正整数a 思路:分解质因子,然后直接暴力求出对数 代码: #include #include #include #include #include using namespace std; typedef long long ll; const int MAXN = 1000; ll arr[MAXN];...
分类:其他好文   时间:2014-09-11 21:02:02    阅读次数:181
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!