题意: 给你n个数和2个操作,C操作是将一个区间内的每个数都加上k,Q操作是询问一个区间的和 链接:http://poj.org/problem?id=3468 思路: 线段树区间修改+区间查询 代码: #include <iostream> #include <stdio.h> #include ...
分类:
其他好文 时间:
2020-01-21 20:09:42
阅读次数:
82
simple-statistics官网:https://simplestatistics.org/docs/#median demo机构: package.json { "name": "react-blank", "version": "0.1.0", "private": true, "depe ...
分类:
Web程序 时间:
2020-01-21 19:52:15
阅读次数:
229
一、时钟 import turtle as t import datetime as dt #画出背景 game = t.Screen() game.bgcolor("white") game.setup(600,600) game.tracer(0) #定义画笔属性 pen = t.Turtle( ...
分类:
编程语言 时间:
2020-01-21 18:25:39
阅读次数:
101
1、application.yml 配置 spring:rabbitmq: host: localhost port: 5672 listener: simple: acknowledge-mode: manual // 手动签发 prefetch: 1 retry: enabled: true i ...
分类:
编程语言 时间:
2020-01-21 16:34:49
阅读次数:
132
Implement a simple command interpreter in Linux. The interpreter should: 1) support both internal and external commands, and internal commands support ...
分类:
编程语言 时间:
2020-01-21 00:47:56
阅读次数:
171
Download Here is the document DynkinDiag.pdf Dynkin diagram, root system is a big mystery of my undergraduate life. Here I present three examples tha ...
分类:
其他好文 时间:
2020-01-21 00:37:09
阅读次数:
85
系列文章说明 原文 所有的web开发者都会很快(或者很痛苦地)意识到Web是一个粗糙的环境,其中最糟糕的一点就是老旧的浏览器。提到“老旧浏览器”,我们脑海中往往复现的就是旧版的IE。但其实老旧浏览器不止这一种,一个一年前的Firefox,比如ESR版本也算得上老旧了。至于移动端,由于有些浏览器和操作 ...
分类:
其他好文 时间:
2020-01-20 23:08:02
阅读次数:
156
C - NEKO's Maze Game 题目链接:http://codeforces.com/contest/1293/problem/C 题意:给你一个2xn的矩阵,让你判断每步之后是否能从(1,1)走到(2,n),一开始都是可行走的,然后给出q次查询,每次查询的(x,y)首次出现该点是封闭的, ...
分类:
其他好文 时间:
2020-01-20 21:10:55
阅读次数:
128
#!/bin/bash # A simple iptables firewall configuration PATH=/sbin:/bin:/usr/sbin:/usr/bin; export PATH #flush/erase original rules iptables -F #清除所有已制 ...
分类:
其他好文 时间:
2020-01-20 19:21:48
阅读次数:
103
http-server的特点: http-server is a simple, zero-configuration command-line http server. It is powerful enough for production usage, but it's simple and ...
分类:
Web程序 时间:
2020-01-20 12:43:21
阅读次数:
142