tput sc ##记录光标位置 tput cup x y ###移动光标至x列y行 tput rc ##返回光标位置 tput civis ##隐藏光标 tput cnorm ## 显示光标 tput setaf ColorNumber## 设置前景色 tput setab ColorNumber ...
分类:
系统相关 时间:
2020-07-25 09:18:53
阅读次数:
107
跳跳棋( 思维题$\star\star\star $) 时限:$1s$ 内存:$256M$ Descrption 跳跳棋是在一条数轴上进行的。棋子只能摆在整点上。每个点不能摆超过一个棋子。 我们用跳跳棋来做一个简单的游戏:棋盘上有 $3$ 颗棋子,分别在 \(a,b,c\) 这三个位置。我们要通过最 ...
分类:
其他好文 时间:
2020-07-24 15:30:05
阅读次数:
79
Given a string containing only digits, restore it by returning all possible valid IP address combinations. A valid IP address consists of exactly four ...
分类:
其他好文 时间:
2020-07-23 23:22:00
阅读次数:
75
原文发于微信公众号 jzman-blog,欢迎关注交流。 前面几篇学习了 Gradle 构建任务的基础知识,了解了 Project 和 Task 这两个概念,建议先阅读前面几篇文章: Gradle系列之初识Gradle Gradle之Groovy基础篇 Gradle系列之构建脚本基础 Gradle ...
分类:
其他好文 时间:
2020-07-22 23:32:55
阅读次数:
77
https://blog.csdn.net/youngtong/article/details/84640382 ...
分类:
其他好文 时间:
2020-07-22 23:31:53
阅读次数:
100
原文来自知乎,现摘录与此 https://zhuanlan.zhihu.com/p/67964081 首先这是一段mnist数据集的基本代码。 class Net(nn.Module): def __init__(self): super(Net, self).__init__() self.con ...
分类:
其他好文 时间:
2020-07-22 16:23:29
阅读次数:
105
如果你有这几个视频需要合并: 1.flv, 2.flv, 3.flv 你只需要建立一个文本文件(e.g.ff.txt),在里面写入: # 相对路径、绝对路径均可 file '/path/1.flv' file '/path/2.flv' file '/path/3.flv' 然后在 terminal ...
分类:
其他好文 时间:
2020-07-22 15:31:11
阅读次数:
69
var uidArr = textarea.split(/[(\r\n)\r\n]+/); ...
分类:
编程语言 时间:
2020-07-21 21:56:29
阅读次数:
58
Given n balloons, indexed from 0 to n-1. Each balloon is painted with a number on it represented by array nums. You are asked to burst all the balloon ...
分类:
其他好文 时间:
2020-07-19 18:05:12
阅读次数:
68
问题: 给定一组带有评分rating的士兵序列。 求从中挑出3个士兵 i, j, k (i<j<k)为一个小组,使得第 i, j, k 名士兵的 rating递增or递减。 这样的小组有多少个。 Example 1: Input: rating = [2,5,3,4,1] Output: 3 Exp ...
分类:
其他好文 时间:
2020-07-18 16:04:17
阅读次数:
67