剑指 Offer 45. 把数组排成最小的数 地址: 剑指 Offer 45. 把数组排成最小的数 输入一个非负整数数组,把数组里所有数字拼接起来排成一个数,打印能拼接出的所有数字中最小的一个。 示例 1: 输入: [10,2] 输出: "102" 示例 2: 输入: [3,30,34,5,9] 输 ...
分类:
编程语言 时间:
2021-01-20 11:43:00
阅读次数:
0
DynamoDB supports two types of primary keys: Partition key: A simple primary key, composed of one attribute known as the partition key. Attributes in ...
分类:
其他好文 时间:
2021-01-19 12:30:09
阅读次数:
0
题目链接:https://vjudge.net/problem/POJ-3278 Description Farmer John has been informed of the location of a fugitive cow and wants to catch her immediatel ...
分类:
其他好文 时间:
2021-01-19 12:20:23
阅读次数:
0
https://codeforces.ml/contest/1465/problem/D 参考:https://www.cnblogs.com/JDFZ-ZZ/p/14171488.html & https://blog.csdn.net/weixin_43918473/article/detail ...
分类:
其他好文 时间:
2021-01-19 12:01:51
阅读次数:
0
ECNU 1000 A + B Problem 链接 https://acm.ecnu.edu.cn/problem/1000 题目 单点时限: 1.0 sec 内存限制: 256 MB 输入格式 Two integer a,b(<=10) . Process to end of file. 输出格 ...
分类:
其他好文 时间:
2021-01-19 11:49:06
阅读次数:
0
def select_sort_simple(li): li_new = [] for i in range(len(li)): min_val = min(li) li_new.append(min_val) li.remove(min_val) return li_new def select_ ...
分类:
编程语言 时间:
2021-01-19 11:43:46
阅读次数:
0
地址 https://vjudge.net/problem/POJ-3050 The cows play the child's game of hopscotch in a non-traditional way. Instead of a linear set of numbered boxes ...
分类:
其他好文 时间:
2021-01-18 11:21:11
阅读次数:
0
题目 题目链接:https://codeforces.com/problemset/problem/757/F 给定一个 \(n\) 个点,\(m\) 条边的带权无向图,和起点 \(s\)。 选择一个点 \(u\)(\(u \neq S\)),使在图中删掉点 \(u\) 后,有尽可能多的点到 \(s ...
分类:
其他好文 时间:
2021-01-18 10:37:30
阅读次数:
0
python在升级到Python3之后,因为Utf-8作为没有歧义的统一标准编码,相信很少人再会碰到编码格式的问题,但现实总会不停地打脸理想,告诉我们Too Young Too Simple。先不扯闲篇,直入主题,介绍一下这篇博文主要的知识,后面再结合具体的软件工作情境来详细说明为什么会碰到此类问题 ...
分类:
编程语言 时间:
2021-01-15 12:16:28
阅读次数:
0
正题 题目链接:https://www.luogu.com.cn/problem/P4357 题目大意 平面上给出$n$个点,求第$k$远的点对距离。 解题思路 $\text$的模板题,但是这里只有二维,大概是每次根据一个维度把$n$个点分成两半像线段树一样丢到下面继续分治的思想来构建一棵树。 那么 ...
分类:
其他好文 时间:
2021-01-15 12:02:14
阅读次数:
0