自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

PushyTao的博客

星星之火,可以燎原

  • 博客(11)
  • 资源 (1)
  • 收藏
  • 关注

原创 [Django] Django基础环境配置 | 日记

step1 :设置python 虚拟环境并激活,然后安装Django开发版本这里可以本人参考博客step2 :新建项目之前安装Django以及虚拟环境都是在C盘下处理的,在这里用D盘存储项目出现小插曲:C:\Users\用户名>d:D:\>cd .DjangoProjD:\.DjangoProj>django-admin startproject mysite'django-admin' 不是内部或外部命令,也不是可运行的程序或批处理文件。D:\.Django

2021-11-30 22:08:16 974

原创 [Django] 创建python virtual environment 虚拟环境 并激活 | 安装配置Django

Virtual Environments and Packagesstep1 : 命令行执行python3 -m venv tutorial-env便会在根目录下面创建一个名为tutorial-env 的目录(如果第一次创建的话)里面会包含有python解释器的副本,以及一些支持文件目录所在:step2 : 激活:On Windows, run:tutorial-env\Scripts\activate.batOn Unix or MacOS, run:source tuto

2021-11-30 20:12:52 716 1

原创 [Codeforces 1589D] Guess the Permutation | 交互 思维 二分

题目链接题意多组输入:{每组给出一个n,有一个长度为n的数列,在开始的时候ai=ia_i=iai​=i,有三个数i,j,ki,j,ki,j,k数列反转了[i,j−1][j,k][i,j-1][j,k][i,j−1][j,k]要求出这三个数,可以对系统进行询问[l,r][l,r][l,r]区间内逆序对的个数,会返回这个值}思路:对于这个反转之后的数列来说,[1,i][1,i][1,i]之内的逆序对的个数为0所以在左端点固定(= 1)的情况下,二分右端点找到这个iii然后对于一段反转之后的数

2021-11-18 17:26:03 270

原创 [2019 EC Final] Flow | 贪心 + 思维

One of Pang\textit{Pang}Pang research interests is the maximum flow problem.A directed graph G{G}G with n{n}n vertices is universe\textit{universe}universe if the following condition is satisfied:G{G}G is the union of k{k}k vertex-independent simple path

2021-11-16 15:37:42 19

原创 [Codeforces 1579G] Minimal Coverage | dp最小区间覆盖

You are given n lengths of segments that need to be placed on an infinite axis with coordinates.The first segment is placed on the axis so that one of its endpoints lies at the point with coordinate 0. Let’s call this endpoint the “start” of the first seg

2021-11-11 21:31:09 150

原创 [Codeforces 1286B] Numbers on Tree | 技巧构造

Evlampiy was gifted a rooted tree. The vertices of the tree are numbered from 1 to n. Each of its vertices also has an integer ai written on it. For each vertex i, Evlampiy calculated ci — the number of vertices j in the subtree of vertex i, such that aj&l

2021-11-09 21:23:31 55

原创 [POJ 3683] Priest John‘s Busiest Day | 2-SAT +Tarjan缩点跑拓扑排序

DescriptionJohn is the only priest in his town. September 1st is the John’s busiest day in a year because there is an old legend in the town that the couple who get married on that day will be forever blessed by the God of Love. This year N couples plan t

2021-11-08 20:31:09 48

原创 [POJ3678] Katu Puzzle | 2-SAT 入门

DescriptionKatu Puzzle is presented as a directed graph G(V,E)G(V, E)G(V,E) with each edge e(a,b)e(a, b)e(a,b) labeled by a boolean operator op (oneofAND,OR,XOR)(one of AND, OR, XOR)(oneofAND,OR,XOR) and an integer c(0≤c≤1)c (0 ≤ c ≤ 1)c(0≤c≤1). One Katu

2021-11-07 12:46:17 20

原创 [2018 ICPC 青岛] 解题记录ing

M. Function and Function队友说直接暴力即可#include <cmath>#include <cstdio>#include <iostream>#include <algorithm>using namespace std;typedef long long ll;int get(int x) { if (x == 0) return 1; int sum = 0; while (x) { int d = x

2021-11-02 21:33:06 27

原创 [NCPC2021] Antenna Analysis | 思维递推

题目描述Åke has heard that there may be some suspicious 5G radiation in his city. To test this, he uses the antenna on his roof to measure the 5G level each day. However, he does not know how he should analyze the data.We are given the measurements for n con

2021-11-01 20:36:53 37

原创 [模板 辛普森积分] Grazed Grains | NCPC2021 | 辛普森积分求圆的面积并

评测地址可以到:传送门题目描述This year, there have been unusually many UFO sightings reported. Nobody knows if they are caused by optical illusions, weather phenomena, or secret technology being tested by foreign powers (terrestrial or not). UFO enthusiasts across the

2021-11-01 19:58:23 15

一份(不太)简短的 LATEX 2ε 介绍

英文作者: Tobias Oetiker Hubert Partl, Irene Hyna and Elisabeth Schlegl 英文版本: Version 6.2, Februrary 28, 2018 中文翻译: CTEX 开发小组 中文版本:版本 6.02,二零二零年八月

2020-10-13

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除