题面: There are n courses in the course selection system of Marjar University. The i-th course is described by two values: happiness Hi and credit Ci. I ...
分类:
其他好文 时间:
2020-04-05 22:35:03
阅读次数:
93
看源码得知: public enum State { /** * Thread state for a thread which has not yet started. */ NEW, /** * Thread state for a runnable thread. A thread in th ...
分类:
编程语言 时间:
2020-04-05 20:40:38
阅读次数:
79
VS Code 配置C++ 详解 我太难了一开始对配置一窍不通各种坑都踩过了,最后被逼无奈去学习了lauch.json还有tasks.json等文件的含义,才配置好了C++ 下面我写一个小白配置教程 首先下载VS Code还有MinGW,在VS Code商店里下载插件:Chinese、C/C++、C ...
分类:
编程语言 时间:
2020-04-05 18:44:10
阅读次数:
923
不使用BootStrap 之 CSS全局样式中的表格,自己也不定义CSS样式 <table> <caption>学生信息表</caption> <tr> <th>编号</th> <th>姓名</th> <th>性别</th> <th>操作</th> </tr> <tr> <td>1</td> <td ...
分类:
Web程序 时间:
2020-04-05 10:04:32
阅读次数:
97
package LeetCode_1137 /** * 1137. N-th Tribonacci Number * https://leetcode.com/problems/n-th-tribonacci-number/description/ * * The Tribonacci sequen ...
分类:
其他好文 时间:
2020-04-05 09:52:07
阅读次数:
53
现假设有一个整型数组: Integer[] arr = {20, 20, 4, 4, 21, 7}; // 2020年4月4日21时7分 如何用逗号加空格 “, ” 分割数组元素并放置在“[]”中从而获得如下格式的数组元素字符串呢? [20, 20, 4, 4, 21, 7] Show you th ...
分类:
其他好文 时间:
2020-04-05 00:27:21
阅读次数:
70
The sequence of mm integers is called the permutation if it contains all integers from 11 to mm exactly once. The number mm is called the length of th ...
分类:
其他好文 时间:
2020-04-04 14:19:57
阅读次数:
98
异常对象的printStackTTrace()方法用于打印异常的跟踪栈信息,根据printStackTTrace()方法输出的结果,开发者可以找到异常的源头,并跟踪到异常一路触发的过程。 下面测试printStackTrace的例子: 运行上面的程序可以看出如下图所示的结果: 从图可以看出异常从th ...
分类:
编程语言 时间:
2020-04-03 23:41:50
阅读次数:
84
leetcode 53. Maximum Subarray 链接 "leetcode" 描述 Given an integer array nums, find the contiguous subarray (containing at least one number) which has th ...
分类:
其他好文 时间:
2020-04-03 16:25:10
阅读次数:
60
测试一下Linux下面删除大量文件的效率。 首先建立50万个文件 $ test for i in $(seq 1 500000);do echo text >>$i.txt;done 1. rm删除 $ time rm -f * zsh: sure you want to delete all th ...
分类:
系统相关 时间:
2020-04-02 22:15:55
阅读次数:
109