#include<iostream> #include<vector> #include<algorithm> #include <queue> #include <functional> #define endl '\n' #define _for(i,a,b) for(int i=a;i<b;i ...
分类:
其他好文 时间:
2020-03-10 13:54:47
阅读次数:
44
1.1 面向对象VS面向过程 1、编程范式 1. 编程是 程序 员 用特定的语法+数据结构+算法组成的代码来告诉计算机如何执行任务的过程 2. 实现一个任务的方式有很多种不同的方式, 对这些不同的编程方式的特点进行归纳总结得出来的编程方式类别,即为编程范式。 3. 两种最重要的编程范式分别是面向过程 ...
分类:
其他好文 时间:
2020-03-10 09:14:12
阅读次数:
54
1. 问题描述 在windows平台中打包运行springboot jar包提示如下错误 在idea中运行正常 org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException: Input length ...
分类:
其他好文 时间:
2020-03-09 22:27:18
阅读次数:
157
题目大意: 有n条直线,求它们两两之间的交点到(p,q)前m近的距离和。 $n \le 50000, m \le 10^7$ 题解: 二分答案r,肯定的。 接着就是求有多少个交点到(p,q)的距离 define fo(i, x, y) for(int i = x, _b = y; i = _b; i ...
分类:
其他好文 时间:
2020-03-09 20:55:47
阅读次数:
49
C的移位位运算符。移位运算符向左或向右移动位。 1.左移:<< 左移运算符(<<)将其左侧运算对象每一位的值向左移动其右侧运算对象指定的位数。 左侧运算对象移出左末端位的值丢失,用0填充空出的位置. 下面例子中,每一位都向左移动两个位置: (10001010) << 2 //表达式 (0010100 ...
分类:
编程语言 时间:
2020-03-09 11:59:26
阅读次数:
112
Stats 102A HW4 Due March 3, 2020General Notes? You will submit a minimum of three files, the core files must conform to the followingnaming convention ...
分类:
其他好文 时间:
2020-03-08 20:10:33
阅读次数:
68
COMP2401 - Assignment #4(Due: Sun. Mar 15, 2020 @ 6pm)In this assignment, you will gain practice dynamically allocating/freeing memory as well as work ...
分类:
其他好文 时间:
2020-03-08 19:38:57
阅读次数:
73
官网 http://spark.apache.org/docs/2.3.1/rdd-programming-guide.html#accumulators http://spark.apache.org/docs/2.3.1/api/scala/index.html#org.apache.spark ...
分类:
其他好文 时间:
2020-03-08 17:55:40
阅读次数:
96
写这个程序的目的是学习数据结构的时候方便调试,学习起来也比较直观。 这个是我测试SplayTree时候的gif STEP 1 新建一个头文件,命名为DrawATree.hh, 将以下内容复制进去 cpp include "DrawATree.hh" include "YourTree.hh" int ...
分类:
编程语言 时间:
2020-03-08 17:38:24
阅读次数:
145
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv ...
分类:
Web程序 时间:
2020-03-08 14:05:58
阅读次数:
79