##题意 传送门 一个无限长数轴,初始数轴上每个坐标上的数都是$0$, 共$n$个操作,每个操作将数轴某一位置上的数加$c$, $m$个询问,询问区间$[ l , r ]$上所有数的和 ###数据范围 \(\begin{array}{l}-10^{9} \leq x \leq 10^{9} \\ 1 ...
分类:
其他好文 时间:
2020-07-12 00:53:14
阅读次数:
85
[C 语言中文开发手册tan (Numerics) - C 中文开发手册在头文件中定义??float tanf(float arg);(1)(自C99以来)双坦(double arg);(2)?长双重坦克(long double arg);(3)(自C99以来)在头文件中定义??#define ta... ...
分类:
其他好文 时间:
2020-07-12 00:36:25
阅读次数:
95
E. K-periodic Garland 题意 给出一个长度为 n 的 01 串,现在规定一个串如果相邻两个 1 的位置相隔为 k ,那么这个串就是好串,现在你可以将某个位置的字符翻转,问最少需要多少次可以把这个串变成一个好串? 思路 本来是练习DP的,但是想着想着跑偏了。 好串格式应该是0000 ...
分类:
其他好文 时间:
2020-07-11 19:33:40
阅读次数:
40
QT连接mysql 对版本和系统的影响不大 环境变量 Mysql 有很多版本,在线下载版本,离线版本,免安装版本 在线下载的版本可以自己选择需要的功能和插件, 离线版本,直接一键安装就行 免安装版本 需要环境变量,和通过命令集 启动mysql数据库的使用, 都有优点 我都是在先安装最新版本的 202 ...
分类:
数据库 时间:
2020-07-11 19:31:49
阅读次数:
112
#include<iostream> #include<cmath> #include<algorithm> #include<string> #include<cstring> #define DEBUG if( 1 )//是否输出调试用信息 using namespace std; int W, ...
分类:
其他好文 时间:
2020-07-11 19:21:29
阅读次数:
61
一、函数 1、recvfrom函数 UDP使用recvfrom()函数接收数据,他类似于标准的read(),但是在recvfrom()函数中要指明目的地址。 #include <sys/types.h> #include <sys/socket.h> ssize_t recvfrom(int soc ...
分类:
系统相关 时间:
2020-07-11 16:52:09
阅读次数:
75
A substring of a string T is defined as: T(i, k)=TiTi+1...Ti+k-1, 1≤i≤i+k-1≤|T|. Given two strings A, B and one integer K, we define S, a set of tripl ...
分类:
编程语言 时间:
2020-07-11 13:09:02
阅读次数:
71
比较好的一道贪心题. code: #include <set> #include <vector> #include <cstdio> #include <cstring> #include <algorithm> #define N 100009 #define ll long long #def ...
分类:
其他好文 时间:
2020-07-11 12:50:00
阅读次数:
60
using System;using System.Runtime.InteropServices;namespace EAE.MyServiceInstaller{ class ServiceInstaller { #region Private Variables private string ...
在C语言#define机制中包括了一个规定,与允许把参数替换到文本中,这种实现通常称为宏或宏定义。下面是宏的声明方式: #define name(parameter-list) stuff 其中 parameter-list的左括号必须与name紧邻,如果中间有空白,parameter-list就会 ...
分类:
编程语言 时间:
2020-07-11 09:48:01
阅读次数:
98