码迷,mamicode.com
首页 >  
搜索关键字:lld    ( 3245个结果
asp.net core在Centos7环境运行配置
环境说明:?服务器系统:CentOS 7.2.1511相关工具:Xshel、Xftp服务器软件软件:.netcore、nginx、supervisor??准备好发布的程序?安装.NET Core SDK for CentOS7?打开网址:https://www.microsoft.com/net/core#linuxcentos复制如下命令,单步执
分类:Web程序   时间:2018-07-09 13:31:19    阅读次数:291
HDU - 4607 Park Visit (树的直径)
http://acm.hdu.edu.cn/showproblem.php?pid=4607 题意 一颗n个顶点的树,现在只想访问其中k个,问最短路径长度为多少。 分析 首先,最短的路径当然是一条链。那么我们需要求树的直径。求法:先从任意一点dfs到最深处v,再以v为根深搜,得到的最长路径便是树的直 ...
分类:其他好文   时间:2018-07-09 00:37:37    阅读次数:166
HDU2449 Gauss Elimination 高斯消元 高精度 (C++ AC代码)
原文链接https://www.cnblogs.com/zhouzhendong/p/HDU2449.html 题目传送门 - HDU2449 题意 高精度高斯消元。 输入 $n$ 个 $n$ 元方程。 $n\leq 100$ 注:本题对输入数值大小貌似没有说明限制。 题解 高精度高斯消元啊,去写。 ...
分类:编程语言   时间:2018-07-08 23:11:04    阅读次数:222
[模拟]Decrease (Judge ver.)
题目描述 We have a sequence of length N consisting of non-negative integers. Consider performing the following operation on this sequence until the larges ...
分类:其他好文   时间:2018-07-08 22:08:26    阅读次数:232
快速幂
#include #include #include #include #include #include using namespace std; long long a,b,MOD,ans=1; int main() { scanf("%lld%lld%lld",&a,&b,&MOD); whi... ...
分类:其他好文   时间:2018-07-08 18:02:52    阅读次数:133
乘法逆元(递推)
#include #include #include #include #include #include #define ll long long using namespace std; ll n,p,a[3000001]; int main() { scanf("%lld%lld",&n,&p... ...
分类:其他好文   时间:2018-07-08 18:02:24    阅读次数:166
乘法逆元(快速幂)
#include #include #include #include #include #include #define ll long long using namespace std; ll n,p; int main() { scanf("%lld%lld",&n,&p); ll a=n,a... ...
分类:其他好文   时间:2018-07-08 18:00:29    阅读次数:138
ACM-ICPC Asia Training League 暑假第一阶段第一场 ABF
A Choosing Ice Cream You are standing in the supermarket in front of the freezers. You have a very tough task ahead of you: you have to choose what ty ...
分类:其他好文   时间:2018-07-08 14:43:21    阅读次数:213
JZOJ1497 景点中心 题解
题目: 数据范围以及样例解释: 思路 对于30%的数据,爱怎么做怎么做,我就不信你拿不到。 对于60%的数据,枚举所有的点作为根,以该点根做dfs可以求出每个点到根的距离dis[i],用每个点的学生人数 dis[i]再加起来就是对应的答案,取个最小值即可。枚举O(n),dfs复杂度也是O(n),因此 ...
分类:其他好文   时间:2018-07-07 20:55:33    阅读次数:194
Codeforces 1000C Covered Points Count
C. Covered Points Count题目大意:有n条线段,问有多少个点被i条线段覆盖(i=1~n)。很常见的线段覆盖套路题QAQ。坐标排序后把左端点当做+1,右端点当做-1,扫一遍统计答案即可。但是记得开ll,数组大小开双倍。 1 #include <iostream> 2 #includ ...
分类:其他好文   时间:2018-07-07 17:36:25    阅读次数:191
3245条   上一页 1 ... 97 98 99 100 101 ... 325 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!