码迷,mamicode.com
首页 >  
搜索关键字:ll    ( 5333个结果
Linux文件详细属性
#文件属性 ##每列的含义 [root@oldboyedu ~]# ll -i 33575029 -rw-r--r--. 1 root root 337 Nov 2 10:26 hosts 第一列: inode号 index node 文件索引 存放着 指向blok的指针 每个文件都占用一个inod ...
分类:系统相关   时间:2020-11-06 02:34:03    阅读次数:17
CSP注意事项
1.变量名:比如y0,y1,time,next,max,min什么的,等有可能出错的变量名; 2.注意多Ctrl+s; 3.注意不要超空间,大致算一下; 4.注意局部变量和全局变量重复引起的玄学错误; 5.scanf 输出LL类型的值一定要是lld要不然会有玄学错误; 6.少压行 7.审题 8.文件 ...
分类:其他好文   时间:2020-11-06 02:10:56    阅读次数:20
2020.10.9个人赛补题
b题:b其实不难题意就是不让k个连续字符成为一个周期。这提给我的教训就是中文翻译应该结合英文题目一起看, #include<bits/stdc++.h>#include<algorithm>#define ll long longusing namespace std;const ll nl=1e5 ...
分类:其他好文   时间:2020-11-02 10:12:11    阅读次数:22
《51nod1237 最大公约数之和 V3》
好题: #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 5e6 + 5; const LL Mod = 1e9 + 7; #define INF 1e9 #define dbg(x) c ...
分类:其他好文   时间:2020-11-01 22:04:43    阅读次数:23
PTA团体程序设计天梯赛题目集 L1-064 估值一亿的AI核心代码 (20分)
去年比赛的时候虽然对了,但写的好麻烦,以至于后面不敢再写这道题,今天又写了一遍,贴出来做纪念。 #include<stdio.h> #include<bits/stdc++.h> using namespace std; #define ll long long #define io_opt ios ...
分类:其他好文   时间:2020-10-27 11:46:36    阅读次数:32
Codeforces Round #678 (Div. 2) C. Binary Search (二分,组合数)
题意:有长度$n$的序列,让你构造序列,使得二分查找能在$pos$位置找到值$x$.问最多能构造出多少种排列? 题解:题目给出的$pos$是固定的,所以我们可以根据图中所给的代码来进行二分,确定有多少数小于$x$和大于$x$,然后根据排列组合即可算出答案. 代码: int n,x,pos; ll f ...
分类:其他好文   时间:2020-10-27 11:38:34    阅读次数:29
图论模板
图论模板 最短路 Dijkstra struct HeapNode { int u; LL d; bool operator < (const HeapNode& rhs) const { return d > rhs.d; } }; bool done[maxn]; LL d[maxn]; voi ...
分类:其他好文   时间:2020-10-26 11:08:36    阅读次数:22
算法模板之Dijkstra
Dijkstra是求单源最短路的一种算法,它不能够处理含有负权边的图。本质是递推,依次求出距离起点最近的点。 C++ 板子 #include<bits/stdc++.h> #define ll long long /* 题目链接:https://www.luogu.com.cn/problem/P3 ...
分类:编程语言   时间:2020-10-22 22:15:58    阅读次数:24
CF360B - Levko and Array 题解
本题解是 CF360B 的 \(n\leq 2\times10^5\) 加强版。 一开始看到这题难度 2000,那完蛋了啊,我连 2000 的题都不会做了/ll。然后发现数据范围才 $2000$/xk。 答案 \(x\) 显然有单调性,先二分起来。 考虑固定那些没有被改变的柱子。那么不难发现,一个没 ...
分类:其他好文   时间:2020-10-19 23:07:28    阅读次数:32
CF1430F Realistic Gameplay
朴素做法暴力DP,O(nk)过不去。。。 1 #include <cmath> 2 #include <cstdio> 3 #include <cstring> 4 #include <algorithm> 5 #define N1 2005 6 #define ll long long 7 usi ...
分类:其他好文   时间:2020-10-18 16:56:48    阅读次数:23
5333条   上一页 1 ... 8 9 10 11 12 ... 534 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!