Codeforces713C-Sonya and Problem Wihtout a Legend(dp + 离散化)

Codeforces #713C: Sonya and Problem without a Legend 题解 如果做过cf 13C sequence应该马上就能发现这两道题惊人的相似 但是这题要求严格递增,怎么办呢? 于是有一个神奇的做法 对于a[i],将其减去i,得到新数组b,b数组中只要保证不下降,a就能保证严格递增 于是可以上dp代码了 (dp方程可以看13C sequence) #include #include #include #include #include #inc 阅读详情

题目链接

http://codeforces.com/problemset/problem/713/C

思路

a[i]非常大但是n很小,可以考虑离散化,将一维考虑成下标,那么可以先将数组排序成b[i]
有一个题目是求非严格的单调递增序列需要的代价:
状态表示:d[i][j], 第i个数为b[]中的第j个数需要的最小代价
转移方程:d[i][j] = min(d[i][j], d[i - 1][k] + |a[i] - b[j]|) k ≤ j;
其中依赖于这样一个性质:对一个数a[i],经过操作后一定是原序列中的某个数(可以考虑将若干个数转化为x,那么代价为|a[i] - x|,当x为这些数的中位数的时候代价最小,因此经过操作后一定是原序列中的某个数)
上面的问题解决了后,这道题要求的是一个严格递增的序列,考虑若a[i] < a[i + 1],那么有a[i] - i ≤ a[i + 1] - (i + 1)。即将每位数字减去下标,就转化成了非严格递增序列的最小代价问题

细节

本来状态是O(n^2),转移是O(n)的,但是实际上只要最小的d[i - 1][k],因此每次记录一下最小的d[i - 1][k]即可

代码

#include <iostream>
#include <cstring>
#include <stack>
#include <vector>
#include <set>
#include <map>
#include <cmath>
#include <queue>
#include <sstream>
#include <iomanip>
#include <fstream>
#include <cstdio>
#include <cstdlib>
#include <climits>
#include <deque>
#include <bitset>
#include <algorithm>
using namespace std;

#define PI acos(-1.0)
#define LL long long
#define PII pair<int, int>
#define PLL pair<LL, LL>
#define mp make_pair
#define IN freopen("in.txt", "r", stdin)
#define OUT freopen("out.txt", "wb", stdout)
#define scan(x) scanf("%d", &x)
#define scan2(x, y) scanf("%d%d", &x, &y)
#define scan3(x, y, z) scanf("%d%d%d", &x, &y, &z)
#define sqr(x) (x) * (x)

const int maxn = 3005;
const LL INF = 1e18;
LL a[maxn], b[maxn], pre[maxn], d[maxn][maxn];
int n;

int main() {
    scan(n);
    for (int i = 1; i <= n; i++) {
        scanf("%I64d\n", &a[i]);
        a[i] -= i;
        b[i] = a[i];
    }
    sort(b + 1, b + 1 + n);
    for (int i = 0; i <= n; i++) {
        pre[i] = INF;
        for (int j = 0; j <= n; j++) {
            d[i][j] = INF;
        }
    }
    for (int i = 1; i <= n; i++) {
        for (int j = 1; j <= n; j++) {
            if (i == 1) d[i][j] = min(d[i][j], abs(a[i] - b[j]));
            else d[i][j] = min(d[i][j], pre[j] + abs(a[i] - b[j]));
            pre[j] = min(pre[j - 1], d[i][j]);
        }
    }
    LL res = 1e18;
    for (int j = 1; j <= n; j++) res = min(res, d[n][j]);
    printf("%I64d\n", res);
    return 0;
}

手把手教你用OpenCV+Python实现HALCON级模板匹配(附工业案例代码) 本文详细介绍了如何利用开源计算机视觉库OpenCV和Python,构建媲美HALCON商业软件的工业级模板匹配解决方案。通过分析工业检测的核心挑战,文章提供了从模板预处理、多策略融合匹配到应对尺度与旋转的完整代码实现,并附有连接器引脚检测的实战案例,为工业自动化场景下的高精度视觉检测提供了低成本、高可控性的技术路径。 阅读详情

相关推荐

别再用UE5默认材质:用Substance Painter一招提升写实感

今天,我就把这套从模型准备到引擎最终呈现的全流程技巧毫无保留地分享出来,这套方法不仅能让你的作品细节炸裂,更能让你理解次世代PBR(Physically Based Rendering)材质的底层逻辑。

海外旅居设计师,15年设计经验。 1333

CodeForces - 713C Sonya and Problem Wihtout a Legend ( DP )

题意: 将给出的数组转化为单调递增的数组所花费的最小代价(代价为每个数改变的大小之和) 分析: 首先这个题就是POJ3666的一个变型, POJ3666是计算的非严格的单调递增 先说POJ3666的解法: 表示将第 i 个数转化为第 j 个数所花费的最小值,( j 所代表的是排序后有序递增的一个数组) 那么 这样算下来是一个非严格的单调递增序列。 因为这个题要计算的是严...

兜率工的博客 395

阿里巴巴达摩院人工智能训练师(高级)

阿里巴巴达摩院人工智能训练师(高级)

huang0612123的博客 1万+

CodeForces - 713C(经典DP)

CodeForces - 713C(经典DP) 题意:给出一个长度为n的数列(n<=3000),每次操作可以把其中一个数增大1或者减小1,求最少操作次数使得数列严格单调递增。 思路: 1.首先如果是变成一个非递减的序列,该怎么做?我们很明显可以发现:最后这个非递减的序列一定只是原来序列排序之后的结果。假设dp[i][j]表示当前枚举到第i个数,让它变成第j大的数需要的最小花费,那么转移方程很显然就是: dp[i][j]=min(dp[i-1][k]+abs(a[i]-b[j]),dp[i][j]);

qq_43653111的博客 479

STM32_WS2811驱动

STM32的WS2811驱动

健身房 2846

多尺度Transformer+特征融合新范式,算力减半精度猛增

在大模型时代,多尺度特征融合与Transformer架构的结合正成为研究热点。多尺度特征融合能够捕捉数据在不同尺度上的关键信息,而Transformer架构凭借其强大的并行处理能力和对长距离依赖的建模能力,为复杂数据处理提供了新的思路。这种结合在处理多模态数据时展现出巨大潜力。

Tulingxueshu的博客 1066

codeforces 713C

题意:就是把一个数列变成严格递增的数列 求最小花费 思路:直接考虑结果的整个数列   必然存在那么几个数  他是从始至终 都没有变过  那么假设有一些数会受到这个数影响 比如一个数ai不变 如果aj 是受ai影响 那么就会消耗   abs(ai-i-aj+j) 那么我把每一个ai-i设为一个基准线 那么dp[ai-i]就是当前基准线花费最小的情况  既可获得答案  #incl

751

一二次融合配电终端(FTU)技术革新:馈线自动化功能深度解析与应用实践

本文深度解析了一二次融合配电终端(FTU)在馈线自动化中的核心技术革新。重点对比了集中型与就地型自动化模式,并详细剖析了电压时间型和电压电流型两种主流就地型逻辑的工作原理、参数整定及现场应用实践,为提升配电网供电可靠性提供了关键技术支持。

weixin_29189987的博客 481

Codeforces-713C-Sonya and Problem Wihtout a Legend

题目链接:http://codeforces.com/problemset/problem/713/C题意:给定一个正整数序列,每次可以选择一个数,增加或者减少一,问最少执行多少次操作能把原序列变成严格递增序列?思路:如果这是要求非严格递增序列即严格不下降序列的话,这就是一个很经典的题目,关于这个题目还有一个定理: ·不严格递减最后修改完之后的各个数一定是原序列中的某个数! 这样的话既可以考虑用

Kyrene_D的博客 582

2025实战|C#上位机+STM32实现LED串灯控制:串口通信+PWM调光+自定义帧协议(附上下位机源码)

粘包:一次收到“BRIGHT:50LED_OFF”,解析完全错乱;乱码:串口波特率/编码不匹配,指令变成“??H??50”;丢帧:数据传输中少字符,比如“BRIGHT:5”,解析出亮度5而非50。因此我们设计字节级自定义帧协议协议先行:无论简单还是复杂场景,先定义清晰的帧协议,避免数据错乱;串口稳字当头:下位机用环形缓冲区接收,上位机加锁发送,避免丢包/粘包;跨线程必处理:C#上位机所有UI更新必须用Invoke,否则必崩溃;硬件是基础:接线、供电、共地这些细节,比代码更易出问题;

这里只有干货:从 Modbus 通信到 MES 对接,从 YOLO 训练到工控机部署,带你搞定工业软件开发全流程。 764

【EB_Tresos专题】-06-配置一个UDS诊断DID

<--返回「Autosar_BSW高阶配置」总目录--> <--返回「Autosar_BSW高阶配置」专栏主页--> <--返回「个人博客」首页--> <--返回「Autosar_BSW高阶配置」总目录--> <--返回「Autosar_BSW高阶配置」专栏主页--> <--返回「个人博客」首页--> 结尾 ...

「汽车电子助手」的博客 4094

Codeforces 713C Sonya and Problem Wihtout a Legend(离散化dp)

给你一个数列,对于每个数字你都可以++或者−−给你一个数列,对于每个数字你都可以++或者-- 然后花费就是你修改后和原数字的差值,然后问你修改成一个严格递增的,最小花费然后花费就是你修改后和原数字的差值,然后问你修改成一个严格递增的,最小花费 如果不是严格递增的,那么就是很多数字可以取相同的如果不是严格递增的,那么就是很多数字可以取相同的 而且只有可能是出现的这n个数字的取值而且只有可能是出现

Miracle_ma的专栏 1935

《基于FPGA的数字信号处理》专栏的导航与说明

《基于FPGA的数字信号处理》专栏的导航与说明

孤独的单刀 4179

codeforces 713C(Round #371 Div2 E) Sonya and Problem Wihtout a Legend Dp + 前缀 +离散化

/* 题目描述:给出一个包含n个数的序列a1,a2,...,an,先要把该序列修改成严格单增的序列,假设修改成 b1,b2,...,bn的花费为 |a1 - b1|+|a2 - b2|+...+|an - bn|,问最小花费是多少? 方法:非常类似于POJ3666,建议先把这道题AC,为了转化成POJ3666,需对性质进行如下分析:

jijijix的博客 560

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

C# WinForm 基于DirectShow.dll编写的程序,可边预览边保存视频,音频和图片

基于微软的DirectShow.dll的二次开发1.自动识别连接的摄像头跟麦克风且可以对其进行选择(默认选中第一个)2.可录制wmv和avi两种格式的视频并且都带有音频,avi可以录制的分辨率和帧数进行选择,wmv默认进行了淸晰度优化如不喜欢可去除代码中有相关提示3.可在预览点开之后进行拍照,也可边录制视频边拍照4.添加了视频和音频的压缩功能(酌情使用)这次二次开发发现C#对DirectShow的相关信息太少,这次做完也不敢藏私共享出来,还望大家指正

Codeforces-713C Sonya and Problem Wihtout a Legend

题目大意: 给你一个序列,让你把它变成一个严格递增的序列。 对每个数字,无论+1或者-1都消耗1,问你把它变成严格递增的序列的最小cost 解题思路: DP 首先根据题目,a[i+1] >= a[i] + 1,两边同时减去i+1,就得到a[i+1] - (i + 1) >= a[i] - i 设b[i] = a[i] - i,则b序列是不降序列,那么问题就变成了将序列变成一个不降序列所

Wilbert的博客 571

Camera2Demo

在Camera2 的基础上进行封装,使得Camera2一堆初始化逻辑与Activity分离,降低耦合度,完成预览拍照并保存的操作

codeforces 713C C. Sonya and Problem Wihtout a Legend(dp)

题目链接: C. Sonya and Problem Wihtout a Legend time limit per test 5 seconds memory limit per test 256 megabytes input standard input output standard output Sonya was unable to th...

weixin_30709809的博客 303

lwip-2.0.3

lwip是瑞典计算机科学院(SICS)的Adam Dunkels 开发的一个小型开源的TCP/IP协议栈。实现的重点是在保持TCP协议主要功能的基础上减少对RAM 的占用。

codeforces 713C dp+离散

题意:给你一个整数序列,可以给一个数+1或-1 代价都是1 问最少操作多少次使序列严格递增。 题解:dp+离散 类似于poj3666 只不过原序列a[i]=a[i]-i 然而感觉最终每个数都是原序列中的数,这个结论感觉好魔幻。。。。。。 然后YY了一个比较有道理的推论方法:假如当前序列到i都是递增的 在第i~j个数不再递增,那么第i~j最优整合方案就是向i~j的中位数靠拢,由于中位数一定是原

WJSZMRX 1200

[堆与斜率] Codeforces 713C - Sonya and Problem Wihtout a Legend

DescriptionDescription给定一个序列,每次可以对一个数+1+1、−1-1,问最少的操作次数使得序列严格上升。SolutionSolution这里提供了一种O(nlogn)O(nlogn)的做法。 大概就是fif_i是一个斜率非正的单峰函数,要找到最值的位置就是斜率从−1-1变到00的时候。 fi(x)={MINY≤X|Ai−Y|MINY≤X(fi−1(Y)+|Ai−Y|)i=

Vectorxj的博客 796

CodeForces 713C Sonya and Problem Wihtout a Legend (策略问题+DP)*

题目大意 给定一个序列,现在有两种操作, 一种是使序列中某一个数加一,一种是使其减一. 问把这个序列弄成单调递增的最少操作次数是多少. 题目分析 这题我是看题解的,发现是蛮经典的一道题. 首先考虑不降序列,那么我们如果暴力DP那么数据范围 是九次方存不下,我们需要找到一种可以包含所有可能转移到的状态的 空间而使空间开的下. 我们可以证明序列最后映射成的,是其原本序列的子集...

满月照亮的路 296

[堆 折线] Codeforces713C. Sonya and Problem Wihtout a Legend

CF题解 很妙啊#include <cstdio> #include <iostream> #include <algorithm> #include <queue>using namespace std;typedef long long ll;const int N=3010;int n,c; ll ans;priority_queue<int> Q;int main(){ freopen

CE玩家 400

Codeforces 713C C. Sonya and Problem Wihtout a Legend (经典DP)

C. Sonya and Problem Wihtout a Legend time limit per test 5 seconds memory limit per test 256 megabytes input standard input output standard output Sonya was unable to t

K键盘里的青春K 1683

hihocoder#1529 : 不上升序列&&Codeforces-713C:Sonya and Problem Wihtout a Legend(思维)

hihocoder#1529 : 不上升序列&&Codeforces-713C:Sonya and Problem Wihtout a Legend 给定一个长度为 n 的非负整数序列 a[1..n]。 你每次可以花费 1 的代价给某个 a[i] 加1或者减1。 求最少需要多少代价能将这个序列变成一个不上升序列。 Sonya was unable to think of a story for this problem, so here comes the formal description. Yo

Mitsuha_的博客 628

CF思维联系– Codeforces-987C - Three displays ( 动态规划)

It is the middle of 2018 and Maria Stepanovna, who lives outside Krasnokamensk (a town in Zabaikalsky region), wants to rent three displays to highlight an important problem. There are n displays plac...

日拱一卒,功不唐捐 3027

CodeForces 1C(计算几何)

问题描述: Nowadays all circuses in Berland have a round arena with diameter 13 meters, but in the past things were different. In Ancient Berland arenas in circuses were shaped as a regular (equiangula

wust_cyl的博客 819

CodeForces - 13C/CodeForces - 713C/HihoCoder - 1529 Sequence dp

题目链接 凯大佬的博客 题意: 给定一个长度为 n 的非负整数序列 a[1..n]。 你每次可以花费 1 的代价给某个 a[i] 加1或者减1。 求最少需要多少代价能将这个序列变成一个不上升序列(有的题目是非递减的,或者严格递减的等等)。 这三个题目都是类似的,只是问法不一样,严格问题的凯爷的博客说的已经很明确了.对于hiho上那个题,因为数据量太大(n^2)是

Marcus-Bao的个人主页 1031
上一篇: HDU5875-Function(RMQ + 二分)
下一篇: Codeforces715B-Complete The Graph(最短路)
Lzed
博客等级 码龄12年 5粉丝 256原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值