码迷,mamicode.com
首页 >  
搜索关键字:define    ( 25272个结果
Array中使用异步函数遍历元素
为确保Array每次循环等待上次操作完成,必须在每次循环中使用异步函数 const arr = [1, 2, 3]; async function fn() { await arr.reduce(async (accumulator, currentValue) => { await accumul ...
分类:其他好文   时间:2020-04-10 14:43:09    阅读次数:84
极角排序——ICPC Latin American Regional Contests 2019 D
这题还是按角度进行极角排序简单点 /* 按亮度从大到小排序,从大的给小的连一条向量,极角排序后所有向量在两个象限内,那么可行,反之不可行 */ #include<bits/stdc++.h> using namespace std; #define N 1005 typedef double db; ...
分类:编程语言   时间:2020-04-09 22:55:58    阅读次数:131
基于51单片机的独立按键和矩阵按键用法
恢复内容开始 主要实现如图所示的功能 将主函数以外的函数全部放在qiyu.h文件中 1 //qiyu.h 2 #define KEY_PORT P1 3 #define led P2 4 #define unchar unsigned char 5 #define uint unsigned int ...
分类:其他好文   时间:2020-04-09 19:11:58    阅读次数:103
【模板】计算几何
1 二维向量/点、计算几何基础 const double eps = 1e-8; #define lt(x, y) ((x) < (y) - eps) #define gt(x, y) ((x) > (y) + eps) #define le(x, y) ((x) <= (y) + eps) #de ...
分类:其他好文   时间:2020-04-09 12:44:18    阅读次数:70
【模板】常用
1 IO 优化 #define ID isdigit(c = *next++) #define IS isspace(c = *next++) struct Istream { int size; char *next, buf[20030731]; Istream & init(FILE *f = ...
分类:其他好文   时间:2020-04-09 12:15:38    阅读次数:61
2019-2020 ACM-ICPC Latin American Regional Programming Contest I - Improve SPAM 树形dp?
``` #include #include #define int long long using namespace std; const int N=4010,mod=1e9+7; int a[N]; int e[N*N],ne[N*N],idx,h[N]; int st[N]; int ans... ...
分类:其他好文   时间:2020-04-09 10:53:11    阅读次数:150
2019-2020 ACM-ICPC Latin American Regional Programming Contest L - Leverage MDT
``` #include #include #include #include #include #include using namespace std; #define LL long long const int N=1010; int val[N][N]; int res[N][N]; ch... ...
分类:其他好文   时间:2020-04-09 10:34:36    阅读次数:114
Codeforces Round #632 (Div. 2) 部分题解
[toc] Codeforces Round 632 (Div. 2) A. Little Artem 题意 :略。 分析 :构造这样的图形: cpp include define ll long long using namespace std; void io() { ios::sync_wit ...
分类:其他好文   时间:2020-04-09 09:14:55    阅读次数:106
Help-.NET-.NET Pet Shop 4.0:ReadMe
1、 Microsoft .NET Pet Shop 4 ReadMe © 2005 Microsoft Corporation. All rights reserved. Contents This documentation provides installation instructions ...
分类:Web程序   时间:2020-04-08 22:46:02    阅读次数:110
最小公倍数
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> int main(){ int a, b; scanf("%d%d", &a, &b); int bigger = a * b; int i; for (i ...
分类:其他好文   时间:2020-04-08 20:55:44    阅读次数:77
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!