题目描述: N只小白鼠(1 <= N <= 100),每只鼠头上戴着一顶有颜色的帽子。现在称出每只白鼠的重量,要求按照白鼠重量从大到小的顺序输出它们头上帽子的颜色。帽子的颜色用“red”,“blue”等字符串来表示。不同的小白鼠可以戴相同颜色的帽子。白鼠的重量用整数表示。 多案例输入,每个案例的输入 ...
分类:
其他好文 时间:
2018-10-01 18:01:31
阅读次数:
132
hmac模块: 1.模块初识: import hmac # h = hmac.new() #括号里要给它连个bytes类型,一个是自定义的secret_key,一个是你想进行加密的bytes # 密文 = h.digest() # hmac.compare_digest() #括号内传另外一个密文, ...
分类:
系统相关 时间:
2018-09-30 00:53:15
阅读次数:
312
Qstring有一些方面跟C/C++中的string的使用,例如把一个字符串追加到另一个字符串中,也是用“+”。也有append函数等。 下面是是Qstring的一些常用的具体函数示例: Qt的QString类提供了很方便的对字符串操作的接口。 使某个字符填满字符串,也就是说字符串里的所有字符都有等 ...
分类:
其他好文 时间:
2018-09-29 11:17:32
阅读次数:
214
fullCalendar日历控件官方网址: https://fullcalendar.io/ ...
分类:
其他好文 时间:
2018-09-28 23:00:41
阅读次数:
198
ES5操作数组的方法 1、concat() concat() 方法用于连接两个或多个数组。该方法不会改变现有的数组,仅会返回被连接数组的一个副本。 var arr1 = [1,2,3]; var arr2 = [4,5]; var arr3 = arr1.concat(arr2); console. ...
分类:
编程语言 时间:
2018-09-25 14:40:32
阅读次数:
187
输出:Ba CC DD aa ba dd ee List<String>排序 输出:[Aa, Bal, Bli, Ccn, Dn, aaa, cm, dm, lm] 输出:[A , Aa , Admin, aete, bada, Beta, bood, cc, Could, dad, Good, K ...
分类:
编程语言 时间:
2018-09-23 13:30:29
阅读次数:
190
1.当然是先安装Beyond Compare3 (此处省略安装步骤,自行百度) 2.设置difftool git config --global diff.tool bc3 git config --global difftool.bc3.path "/usr/bin/bcompare git co ...
分类:
其他好文 时间:
2018-09-23 11:49:55
阅读次数:
174
Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ≥ s. If there isn't ...
分类:
编程语言 时间:
2018-09-20 11:07:27
阅读次数:
166
2018-6-27 星期三 $(".next").on('click',function(){ // next=true; // pre =false; // UpData(pre,next); // date.yyyy = Number($('.year').text()); // da... ...
分类:
Web程序 时间:
2018-09-19 14:50:43
阅读次数:
175
1. 关于比较器Comparator 原来上面的compare方法中参数类型写成了 int, 以为也能编译通过,结果不行,要严格和Comparator中的泛型一致。自定义了比较器后就可以在Collections和Arrays的sort方法对容器中的元素进行排序,默认是升序排序的。 2. 关于集合 ( ...
分类:
编程语言 时间:
2018-09-18 12:35:10
阅读次数:
165