码迷,mamicode.com
首页 >  
搜索关键字:define    ( 25272个结果
均分纸牌问题的分析
均分纸牌问题的分析 ...
分类:其他好文   时间:2020-05-03 12:58:47    阅读次数:44
dp+贪心——2019 NCPC A
把结论推出来就完事了 #include <bits/stdc++.h> #define maxn 100000005 using namespace std; int dp[maxn]; struct Node{ int l,w,h; bool operator <(const Node &b)co ...
分类:其他好文   时间:2020-05-03 00:40:07    阅读次数:47
点云数据文件常用格式
点云数据文件常用格式 文件类型汇总 OFF Object File Format PLY Polygon File Format also known as the Stanford Triangle Format PTS Laser scan data format 文件详细格式 1. OFF O ...
分类:其他好文   时间:2020-05-02 22:42:14    阅读次数:555
Task
#include <bits/stdc++.h> using namespace std; #define int long long const int maxn = 3e3 + 10; int n,a[maxn]; int solve(int l,int r){ int minn = 1e9 + ...
分类:其他好文   时间:2020-05-02 21:18:45    阅读次数:61
装进肚子
#include<bits/stdc++.h> using namespace std; #define int long long const int maxn = 1e5 + 10; int n, k; struct node { int a, b; } e[maxn]; bool cmp(no ...
分类:其他好文   时间:2020-05-02 21:15:11    阅读次数:59
C语言:数组和指针
数组和指针 const 指针 数组 数组 初始化 使用const声明数组 有时需要把数组设置为只读。这样,程序只能从数组中检索值,不能把 新值写入数组。要创建只读数组,应该用const声明和初始化数组。因此,初始化数组应改成: 这样修改后,程序在运行过程中就不能修改该数组中的内容。和普通变 量一样, ...
分类:编程语言   时间:2020-05-02 21:14:57    阅读次数:65
ES6 解构赋值
解构赋值是对赋值运算符的扩展。 他是一种针对数组或者对象进行模式匹配,然后对其中的变量进行赋值。 在代码书写上简洁且易读,语义更加清晰明了;也方便了复杂对象中数据字段获取。 基本用法: let [a, b, c] = [1, 2, 3]; // a = 1 // b = 2 // c = 3 1、可 ...
分类:其他好文   时间:2020-05-02 20:47:23    阅读次数:46
世界上最可爱的珂朵莉
#include<bits/stdc++.h> using namespace std; #define int long long const int maxn=3e5+10; int n,x,y; int a[maxn],b[maxn]; signed main(){ ios::sync_wit ...
分类:其他好文   时间:2020-05-02 20:44:03    阅读次数:58
CF500F New Year Shopping [线段树分治,背包]
不会奇怪的背包科技,只能用线段树分治了。 ...
分类:其他好文   时间:2020-05-02 19:24:10    阅读次数:72
刽子手游戏
题目:游戏规则是这样的:计算机想一个单词让你猜,你每次可以猜一个字母。 如果单词里有那个字母,所有该字母会显示出来;如果没有那个字母,则计算机会在一幅“刽子手”画上填一笔。 这幅画一共需要7笔就能完成,因此你最多只能错6次。 注意,猜一个已经猜过的字母也算错。在本题中,你的任务是编写一个“裁判”程序 ...
分类:其他好文   时间:2020-05-02 19:23:16    阅读次数:79
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!