![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
CodinGame 刷题
gemtra
希望输出点有价值的东西
展开
-
Horse-racing Duals
题目链接 HORSE-RACING DUALS思路:创建数组 array 并读取 Pi 值存储于其中更改 IFS 为换行符(’\n’)后, 使用 sort -n 对 array 进行排序, 结果存储到新的数组 sorted_array遍历 sorted_array, 依次比较"后一元素值与当前元素值的差值"的大小:定义最小值 minimum 为 sorted_array 最后一个元素...原创 2019-03-01 19:09:02 · 242 阅读 · 0 评论 -
MIME Type
# Auto-generated code below aims at helping you parse# the standard input according to the problem statement.# N: Number of elements which make up the association table.read -r N# Q: Number Q of ...原创 2019-02-24 23:44:22 · 136 阅读 · 0 评论