Bzoj3832: [poi2014] rally (topology sort heap)
meaning of the title
Title Link
Sol
The most intuitive idea is to find the longest way after deleting each point. Let's consider how to find this thing
Set \ (f[i] \) to represent the longest path length ending with \ (I \), and \ (g[i] \) to represent the longest path length starting with \ (I \)
According to the nature of DAG, it is obvious t ...
Posted by cainy1982 on Tue, 03 Dec 2019 06:02:59 +0100
Example of mine clearing project for C + + Learning (C language part)
I. new project
II. Create a new source file
main.cpp and mining,cpp
III. create a new header file
mining.h
IV. add picture resources
After adding, a. h header file will be generated in the header file to call resources
After opening, you can see that each resource file is define ...
Posted by zhaohongli on Sun, 01 Dec 2019 20:30:04 +0100
Integer smallint of [numeric type] of data type
1.1 smallint description
1.2 smallint practice
1.2.1 environmental preparation
1.2.2 plus UNSIGNED parameter
1.2.3 plus ZEROFILL parameter
1.2.4 without UNSIGNED and ZEROFILL parameters
1.3 summary of smallint
1.1 smallint description
type
length
Length is when length is not specified
Occupying byte
Signed
Unsigned
smallint
5
6 (actual l ...
Posted by pp4sale on Sun, 01 Dec 2019 20:27:43 +0100
leetcode exercise set 19. Delete the nth last node of the linked list
subject
Given a linked list, delete the nth last node of the list and return the head node of the list.
Example:
Given a list: 1 - > 2 - > 3 - > 4 - > 5, and n = 2
When the penultimate node is deleted, the list changes to 1 - > 2 - > 3 - > 5
Explain:
The given n guarantee is valid.
Advance:
Can you try a ...
Posted by JUMC_Webmaster on Sun, 01 Dec 2019 16:53:11 +0100
Unlock Spring frame pose 1
Spring
Introduction: spring framework is a Java platform, which provides comprehensive infrastructure support for Java application development. Spring is responsible for infrastructure, so you can focus on application development.Spring allows you to build applications from "plain old Java objects" (POJO) and implement enterprise app ...
Posted by g.grillo on Sun, 01 Dec 2019 09:58:50 +0100
Solve the problem that Ajax requests cannot be redirected
Today, it is found that when using Ajax requests, if the background redirection to other pages is not successful, only in the browser address bar input can achieve redirection.
Ajax does not support redirection by default. It is a partial refresh and does not reload the page.
The function to be implemented is that the background gateway inter ...
Posted by whitmard on Sun, 01 Dec 2019 07:18:21 +0100
How does Javascript share variables with sass, less, and CSS?
Original blog address, this blog was first published in csdn, original
Some time ago, I met the need of website skin changing. I thought it would be very simple. Just use Sass or Less to set variables. The result is the style set in js
It has to be set up separately. It's troublesome.
This article code gitHub address https://github.com/l-x-f/va ...
Posted by clay1 on Sat, 30 Nov 2019 06:58:56 +0100
Bottom navigation bar for Vue development
1. Navigation Switching
Encapsulate a common component, Tabbar, to include components in pages that require navigation pages.The code is as follows:
<template>
<div class="tabbar">
<!-- Place holder -->
<div class="placegolder-container"></div>
<!-- Bottom navigation bar -->
<div class="bottom-tabs"& ...
Posted by zbert on Fri, 29 Nov 2019 08:50:45 +0100
JVM source code practice - OOP Klass model
> Github original link
1 OOP Klass (ordinary object pointer) model
OOP Klass model is used to describe the properties and behaviors of class
It is designed as OOP and Klass because we don't want each object to have a C ++ vtbl pointer. Therefore, ordinary oops has no virtual function Instead, they forward all "virtual" functions t ...
Posted by stopblackholes on Thu, 28 Nov 2019 20:24:27 +0100
Common indicators of Apache druid calculation
Druid supports SQL
[ EXPLAIN PLAN FOR ]
[ WITH tableName [ ( column1, column2, ... ) ] AS ( query ) ]
SELECT [ ALL | DISTINCT ] { * | exprs }
FROM table
[ WHERE expr ]
[ GROUP BY exprs ]
[ HAVING expr ]
[ ORDER BY expr [ ASC | DESC ], expr [ ASC | DESC ], ... ]
[ LIMIT limit ]
[ UNION ALL <another query> ]
Duration data type
The duration ...
Posted by naveenbj on Thu, 28 Nov 2019 17:12:13 +0100