新家 题目链接 首先这个没有修改只有询问,可以把年份当时间轴,按年份顺序模拟,这样我们就把年份这一维去掉了。 首先 \(-1\) 比较好判断,单独记录一下目前存在几种商店就行,数组就行。 然后我们需要数据结构,支持: 插入和删除商店 查询不方便指数 考虑从 2 入手,对于一个查询二元组 \((l, ...
#include<iostream> using namespace std; struct node { int v,height; node*lchild; node*rchild; int data; }; int x; node* newNode(int v) { node*Node =ne ...
分类:
其他好文 时间:
2020-08-13 12:14:51
阅读次数:
95
package com.xuyifan.struct; /** * @author xyf * @create 2020-08-11-11:08 */ /** for循环最先执行初始化步骤,可以声明一种类型,但是可以初始化一个或多个初始化变量 也可以是空语句 检测布尔表达式的值,如果为true,则循 ...
分类:
其他好文 时间:
2020-08-11 13:06:35
阅读次数:
82
我们把jdk安装完成后,在命名行输入java -version 不仅可以看到jdk版本相关信息,还会看到类似与 Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode) 这样的信息。 其中有个Server VM (build 25 ...
分类:
其他好文 时间:
2020-08-10 22:09:02
阅读次数:
89
//头文件circlelist.h #pragma once #ifndef CIRCLELIST_H_ #define CIRCLELIST_H_ #include<iostream> using namespace std; struct circleNode{ float data; circ ...
分类:
其他好文 时间:
2020-08-10 22:06:07
阅读次数:
67
解析 考场时想多了,其实根本不用分阶段 一维状压 \(DP\) 就行了 可我没想清楚,加了个第几次去稳固一个点的阶段 然后时间就炸了!!! \(Code\) #include<cstdio> #include<cmath> #include<algorithm> using namespace st ...
分类:
其他好文 时间:
2020-08-10 14:33:20
阅读次数:
66
将搜狗的scel文件转换成txt格式,从网站上copy的,但是忘记是哪个网站了。#!/bin/python # -*- coding: utf-8 -*- import struct import sys import binascii import pdb import os try: reloa ...
分类:
其他好文 时间:
2020-08-07 18:06:32
阅读次数:
85
IOC(概念和原理) 什么是 IOC 控制反转(Inversion of Control,缩写为IoC),把对象创建和对象之间的调用过程,交给 Spring 进行管理 使用 IOC 目的:为了耦合度降低 做入门案例就是 IOC 实现 IOC 底层原理 xml 解析 工厂模式 反射 画图讲解 IOC ...
分类:
编程语言 时间:
2020-08-07 18:03:01
阅读次数:
62
注意建树范围开大一点。 x 先让其 +1 ,树状数组不能维护0 这个点。 int n; int c[32005]; struct Point { int x, y; Point(int _x = 0, int _y = 0) { x = _x; y = _y; } friend bool opera ...
分类:
编程语言 时间:
2020-08-07 12:36:18
阅读次数:
81
题目描述: 给定一个二叉树,返回它的中序 遍历。 输入: [1,null,2,3] 1 \ 2 / 3 输出: [1,3,2] //go //* Definition for a binary tree node. type TreeNode struct { Val int Left *TreeN ...
分类:
其他好文 时间:
2020-08-06 09:31:39
阅读次数:
66