#include <iostream> #include <fstream> #include <string> using namespace std; #define MAXSIZE 101 #define COMMIT typedef struct ArcNode { int adjvex = ...
分类:
其他好文 时间:
2020-04-17 15:38:34
阅读次数:
56
Problem: A?+?B is a problem used to test one's basic knowledge for competitive programming. Here is yet another boring variation of it. You have two i ...
分类:
其他好文 时间:
2020-04-16 22:50:39
阅读次数:
182
题目描述 小 A 的楼房外有一大片施工工地,工地上有 $N$ 栋待建的楼房。每天,这片工地上的房子拆了又建、建了又拆。他经常无聊地看着窗外发呆,数自己能够看到多少栋房子。 为了简化问题,我们考虑这些事件发生在一个二维平面上。小 A 在平面上 ($(0,0)$ 点的位置,第 $i$ 栋楼房可以用一条连 ...
分类:
其他好文 时间:
2020-04-16 19:33:28
阅读次数:
76
枚举第一个数x,根据第一个数找寻和它接近的第二个数y,再找寻和(x+y)/2接近的第三个数z。 1 #define HAVE_STRUCT_TIMESPEC 2 #include<bits/stdc++.h> 3 using namespace std; 4 long long r[100007], ...
分类:
其他好文 时间:
2020-04-16 13:35:02
阅读次数:
64
问题描述: 代码描述: 1 #include<cstdio> 2 #include<stdlib.h> 3 #include<string.h> 4 #include<queue> 5 #define MAXN 256 6 using namespace std; 7 char s[MAXN+10] ...
分类:
其他好文 时间:
2020-04-16 13:15:50
阅读次数:
56
1、注释 1.1、单行注释: python中单行注释采用 # 开头,注释可以在语句或表达式行末。 例: #第一个注释 a = 10 b = 10 print(a + b) #第二个注释,求和。 pycharm中快捷键:ctrl+/ 1.2、多行注释: python 中多行注释使用三个单引号(''') ...
分类:
编程语言 时间:
2020-04-16 11:50:40
阅读次数:
80
嵌入式经典面试题及解析基础部分考察1、用预处理指令#define声明一个常数,用以表明1年中有多少秒(忽略闰年问题)#defineSECONDS_PER_YEAR(606024*365)UL考点01#define语法的基本知识(例如:不能以分号结束,括号的使用,等等)02懂得预处理器将为你计算常数表达式的值,因此直接写出你如何计算一年中有多少秒而不是计算出实际的值,是更清晰而没有代价的。03意识到
分类:
其他好文 时间:
2020-04-16 11:48:36
阅读次数:
91
嵌入式经典面试题及解析 基础部分考察 1、用预处理指令#define 声明一个常数,用以表明1年中有多少秒(忽略闰年问题) #define SECONDS_PER_YEAR (60 * 60 * 24 * 365)UL 考点 01 #define 语法的基本知识(例如:不能以分号结束,括号的使用,等 ...
分类:
其他好文 时间:
2020-04-16 11:47:47
阅读次数:
77
/* time:20200415 where:gfdx man:g-7.net */ #include<iostream> using namespace std; #define doub(x)x*2 int main() { for (int i = 1; i <= 4; i++) { cout ...
分类:
其他好文 时间:
2020-04-15 21:18:34
阅读次数:
67
"A. Candies and Two Sisters" 签到题,直接输出即可 代码 include define INF 0x3f3f3f3f typedef long long ll; using namespace std; inline void read(int &p) { p=0;int ...
分类:
其他好文 时间:
2020-04-15 00:35:19
阅读次数:
73