Preprocessor programs provide preprocessors directives which tell the compiler to preprocess the source code before compiling. Examples of some prepro ...
分类:
其他好文 时间:
2020-05-16 00:28:44
阅读次数:
64
jQuery工具方法$.Callbacks()的简单实现: (function () { //创建一个jQuery构造函数 function jQuery(selector) { return new jQuery.prototype.init(selector); } //为jQuery的原型添加 ...
分类:
Web程序 时间:
2020-05-15 23:03:59
阅读次数:
112
作为本场被请来(抓来)验题的人,我也是见证了这次比赛赛前裁判组的准备,尤其是icpc的系统,真的很不容易,在此为大家点个赞 验题的代码我就放到我的博客上了 A 输出Hl即可 #include<bits/stdc++.h> #define LL long long #define maxn 10001 ...
分类:
其他好文 时间:
2020-05-15 21:52:47
阅读次数:
84
luogu AC传送门(官方数据) 题目描述 小智最喜欢旅行了,这次,小智来到了一个岛屿众多的地方,有N座岛屿,编号为0到N-1,岛屿之间 由一些桥连接,可以从桥的任意一端到另一端,由于岛屿可能比较大,所以会出现一些桥连接的是同 一个岛屿,岛屿之间也可能有多座桥连接,每条桥有一个长度,小智有一个习惯 ...
分类:
其他好文 时间:
2020-05-15 20:26:38
阅读次数:
116
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3685 ac代码: #include<bits/stdc++.h> #define ll long long #define maxn 50010 using namespace std; const d ...
分类:
其他好文 时间:
2020-05-15 17:29:28
阅读次数:
85
1. 使用make的命令行参数-n或--just-print,make会只显示要执行的命令,不执行,这样方便调试makefile。 2.执行命令 每写一行命令,make会fork出一个shell进程来执行该命令,如果要让shell连续执行多条语句,使用 ; 链接命令。 SHELL环境变量指定make ...
分类:
其他好文 时间:
2020-05-15 00:25:25
阅读次数:
63
Dijkstra算法 由于我之前一直记的迪杰斯特拉的翻译导致我把dijkstra写成了dijstra……所以下文#define dijstra dijkstra Dijskra是用来在有向图或者无向图中寻找任意两个点的最小距离的算法。它相较于spfa不会死掉(spfa死了),但是无法处理带负环的图和 ...
分类:
其他好文 时间:
2020-05-14 22:32:12
阅读次数:
91
#include<reg52.h> #include<stdio.h> #define uchar unsigned char #define uint unsigned int uchar code Duan[]={0x3F, 0x06,0x5B,0x4F,0x66,0x6D,0x7D,0x07, ...
分类:
其他好文 时间:
2020-05-14 22:18:08
阅读次数:
88
In this lesson, we define a "count" state value with the x-data directive provided by Alpine JS. This defines a new scoped component, which can have a ...
分类:
Web程序 时间:
2020-05-14 19:49:13
阅读次数:
101
In this lesson, we create a set of tabs with Alpine JS, where only the content of the currently active tab is visible. To do this, we define an active ...
分类:
Web程序 时间:
2020-05-14 19:45:34
阅读次数:
73