题面 主要思想 很明显,题面就是让你将一串数割开,使得隔开后的两数总和最小。 稍微分析一下后我们会想到:对于这里隔开后的两个数,他们的总位数一定,显然他们的位数越相近,总和就有机会越小。所以我们 ...
B. Jamie and Binary Sequence changed after round time limit per test seconds memory limit per test megabytes input standard input output standard output Jamie is preparing a Codeforces round. He has ...
2018-01-23 17:15 0 1302 推荐指数:
题面 主要思想 很明显,题面就是让你将一串数割开,使得隔开后的两数总和最小。 稍微分析一下后我们会想到:对于这里隔开后的两个数,他们的总位数一定,显然他们的位数越相近,总和就有机会越小。所以我们 ...
B. Han Solo and Lazer Gun time limit per test 1 second memory limit per test 256 megabytes input ...
B. Game of the Rows time limit per test 1 second memory limit per test 256 megabytes ...
B. Find The Bone time limit per test 2 seconds memory limit per test 256 megabytes ...
...
B. Mr. Kitayuta's Colorful Graph time limit per test 1 second memory limit per test 256 megabytes ...
CF786B Legacy 题意: 给定\(n\)个点 一共有\(m\)个连边,边有三种。 1.从\(u_i\)到\(v_i\)的一条长度为\(w_i\)的边。 2.从\(u_i\)到\([l,r]\)的一条长度为\(w_i\)的边。 3.从\([l,r]\)到\(v_i\)的一条长度 ...
B. The Bakery http://codeforces.com/contest/833/problem/B 题意: 将一个长度为n的序列分成k份,每份的cost为不同的数的个数,求最大cost的和。1≤n≤35000,1≤k≤50 a[i]">1≤ ...