- 博客(34)
- 问答 (2)
- 收藏
- 关注
原创 Shell终端光标和颜色控制
#include "SColor.h"bool SColor::b_allEnabled=true;void SColor::setAllEnabled(bool enabled){ b_allEnabled=enabled;}bool SColor::allEnabled(){ return b_allEnabled;}void SColor::setEnabled...
2019-01-22 22:36:26
904
原创 swing计算器
//MyCalculator.javapackage test3;import java.awt.BorderLayout;import java.awt.Color;import java.awt.Dimension;import java.awt.GridLayout;import java.awt.KeyEventPostProcessor;import java.awt.K
2016-12-08 21:33:48
455
原创 JAVA用swing做个日历
JAVA作业,我比作业要求的多加了些功能,可以滚轮和键盘左右键翻页快捷键做的也许比较傻吧,监听到就直接doClick();沉迷JAVA,对于我这种以前只写过控制台程序的来说,图形界面真是打开了新世界package test2;import java.awt.BorderLayout;import java.awt.Color;import java.awt.FlowLayout;im
2016-12-08 21:14:58
4677
3
原创 红黑树
跟着《算法导论》写的红黑树,带迭代器,能实现set的一些基本功能 基本上没什么注释,但我自认为变量命名很规范,所以读程序并不是很困难。#ifndef RBTREE_H#define RBTREE_H#undef BLACK#undef RED#define BLACK 0#define RED 1templateclass rbtree{private:
2016-08-18 10:14:49
378
原创 1045
Fire NetTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 9584 Accepted Submission(s): 5584Problem DescriptionSuppose that we h
2016-06-07 20:38:29
330
原创 1044
Collect More JewelsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6396 Accepted Submission(s): 1470Problem DescriptionIt is
2016-05-26 21:27:00
268
原创 1043
EightTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 18728 Accepted Submission(s): 5058Special JudgeProblem DescriptionThe 1
2016-05-19 20:15:28
360
原创 1041
Computer TransformationTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7258 Accepted Submission(s): 2652Problem DescriptionA
2016-05-10 21:03:49
358
原创 大数模版
动态分配内存,由数的十进制位数决定。效率不是很高,但使用方便#ifndef LONGINT_H#define LONGINT_H#include #include class longint{ int *num; int len; bool sign; longint(int *new_num,int new_len,bool new_sign) { num=new_
2016-05-10 21:02:06
706
原创 1040
As Easy As A+BTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 53206 Accepted Submission(s): 22844Problem DescriptionThese day
2016-05-10 19:54:04
420
原创 1039
Easier Done Than Said?Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 11083 Accepted Submission(s): 5356Problem DescriptionPa
2016-03-08 20:07:26
343
原创 1038
Biker's Trip OdometerTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5303 Accepted Submission(s): 3539Problem DescriptionMost
2016-03-07 16:50:24
266
原创 用哈弗曼编码实现文件压缩和解压(改进集成版1.0)
将压缩和解压放在了一个程序里面,并加入了进度显示功能。 并不完善,因为使用'\b'回退符来达到进度的数字能够变化,可是在需要操作的文件较小时会闪动比较严重,还会消耗多余的资源在显示上面,所以执行效率并不算高,可能在学会其他知识,比如图形化界面时我会再来改进它。#include /************/#i
2016-01-24 20:24:21
1278
原创 1036
Average is not Fast Enough!Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5108 Accepted Submission(s): 2075Problem Description
2016-01-21 22:09:28
348
原创 用哈弗曼编码实现文件压缩和解压
今天脑洞大开突然想写一下,明明都要考试了,唉,怎么就管不住这手啊 总之呢,就是根据每种编码的出现频率把等长的编码换成变长的,据说理论上压缩比率是比较高的,可是为什么经检验我这个大部分时候压缩出来的比源文件还大呢? 哈弗曼编码的时候要先做一颗搜索树,查找的时候就按照当前一位是0还是1,找到叶子节点就找到了原编码。生成这颗树用一种贪心法,每次选两个出现频率最小的节点出来,连在一个
2016-01-16 21:32:25
2324
3
原创 1035
Robot MotionTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 8660 Accepted Submission(s): 3987Problem DescriptionA robot h
2016-01-15 22:01:13
406
原创 1011
Starship TroopersTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 15189 Accepted Submission(s): 4085Problem DescriptionYou, t
2016-01-09 17:48:42
307
原创 1034
Candy Sharing GameTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 4629 Accepted Submission(s): 2832Problem DescriptionA numbe
2016-01-09 16:49:26
296
原创 1033
EdgeTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2622 Accepted Submission(s): 1661Problem DescriptionFor products that are
2016-01-07 18:38:08
462
原创 1032
The 3n + 1 problemTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 31428 Accepted Submission(s): 11391Problem DescriptionProbl
2016-01-07 14:43:38
354
原创 1031
Design T-ShirtTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7204 Accepted Submission(s): 3401Problem DescriptionSoon after
2016-01-06 18:30:51
280
原创 1030
Delta-waveTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7091 Accepted Submission(s): 2739Problem DescriptionA triangle fiel
2016-01-05 23:14:38
246
原创 1029
Ignatius and the Princess IVTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32767 K (Java/Others)Total Submission(s): 23290 Accepted Submission(s): 9753Problem Description
2016-01-05 18:47:52
258
原创 1028
Ignatius and the Princess IIITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 16571 Accepted Submission(s): 11680Problem Descripti
2016-01-03 15:37:34
254
原创 1027
Ignatius and the Princess IITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6071 Accepted Submission(s): 3589Problem Description
2015-12-31 21:23:26
321
原创 1026
Ignatius and the Princess ITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 15354 Accepted Submission(s): 4867Special JudgeProblem
2015-12-27 11:52:19
397
原创 1025
Constructing Roads In JGShining's KingdomTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 20433 Accepted Submission(s): 5755Proble
2015-12-26 22:05:00
378
原创 1024
Max Sum Plus PlusTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 21925 Accepted Submission(s): 7341Problem DescriptionNow I t
2015-12-18 12:44:03
332
原创 1023
Train Problem IITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7259 Accepted Submission(s): 3906Problem DescriptionAs we all kno
2015-12-17 11:48:31
338
原创 1022
Train Problem ITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 27777 Accepted Submission(s): 10522Problem DescriptionAs the new t
2015-12-17 10:52:30
291
原创 1021
Fibonacci AgainTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 47348 Accepted Submission(s): 22507Problem DescriptionThere are another kind
2015-12-17 10:22:47
331
原创 1020
EncodingTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 35505 Accepted Submission(s): 15704Problem DescriptionGiven a string containing only
2015-12-16 23:09:00
344
原创 1019
Least Common MultipleTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 41293 Accepted Submission(s): 15567Problem DescriptionThe least common
2015-12-16 22:43:33
358
空空如也
c++异常处理的一件非常奇怪的事
2016-06-18
c++ catch异常处理问题
2016-06-14
TA创建的收藏夹 TA关注的收藏夹
TA关注的人