4 tookkke

尚未进行身份认证

蒟蒻!

等级
TA的排名 15w+

Shell终端光标和颜色控制

#include"SColor.h"boolSColor::b_allEnabled=true;voidSColor::setAllEnabled(boolenabled){ b_allEnabled=enabled;}boolSColor::allEnabled(){ returnb_allEnabled;}voidSColor::setEnabled...

2019-01-22 22:36:26

QT做的推箱子游戏

工程文件下载(实时更新):https://pan.baidu.com/s/1jHIpDD8工程文件目录游戏界面

2017-01-17 20:41:28

swing计算器

//MyCalculator.javapackagetest3;importjava.awt.BorderLayout;importjava.awt.Color;importjava.awt.Dimension;importjava.awt.GridLayout;importjava.awt.KeyEventPostProcessor;importjava.awt.K

2016-12-08 21:33:48

JAVA用swing做个日历

JAVA作业,我比作业要求的多加了些功能,可以滚轮和键盘左右键翻页快捷键做的也许比较傻吧,监听到就直接doClick();沉迷JAVA,对于我这种以前只写过控制台程序的来说,图形界面真是打开了新世界packagetest2;importjava.awt.BorderLayout;importjava.awt.Color;importjava.awt.FlowLayout;im

2016-12-08 21:14:58

红黑树

跟着《算法导论》写的红黑树,带迭代器,能实现set的一些基本功能  基本上没什么注释,但我自认为变量命名很规范,所以读程序并不是很困难。#ifndefRBTREE_H#defineRBTREE_H#undefBLACK#undefRED#defineBLACK0#defineRED1templateclassrbtree{private:

2016-08-18 10:14:49

1045

FireNetTimeLimit:2000/1000MS(Java/Others)    MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):9584    AcceptedSubmission(s):5584ProblemDescriptionSupposethatweh

2016-06-07 20:38:29

1044

CollectMoreJewelsTimeLimit:2000/1000MS(Java/Others)    MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):6396    AcceptedSubmission(s):1470ProblemDescriptionItis

2016-05-26 21:27:00

1043

EightTimeLimit:10000/5000MS(Java/Others)    MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):18728    AcceptedSubmission(s):5058SpecialJudgeProblemDescriptionThe1

2016-05-19 20:15:28

1041

ComputerTransformationTimeLimit:2000/1000MS(Java/Others)    MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):7258    AcceptedSubmission(s):2652ProblemDescriptionA

2016-05-10 21:03:49

大数模版

动态分配内存,由数的十进制位数决定。效率不是很高,但使用方便#ifndefLONGINT_H#defineLONGINT_H#include#includeclasslongint{ int*num; intlen; boolsign; longint(int*new_num,intnew_len,boolnew_sign) { num=new_

2016-05-10 21:02:06

1040

AsEasyAsA+BTimeLimit:2000/1000MS(Java/Others)    MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):53206    AcceptedSubmission(s):22844ProblemDescriptionTheseday

2016-05-10 19:54:04

1039

EasierDoneThanSaid?TimeLimit:2000/1000MS(Java/Others)    MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):11083    AcceptedSubmission(s):5356ProblemDescriptionPa

2016-03-08 20:07:26

1038

Biker'sTripOdometerTimeLimit:2000/1000MS(Java/Others)    MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):5303    AcceptedSubmission(s):3539ProblemDescriptionMost

2016-03-07 16:50:24

用哈弗曼编码实现文件压缩和解压(改进集成版1.0)

将压缩和解压放在了一个程序里面,并加入了进度显示功能。  并不完善,因为使用'\b'回退符来达到进度的数字能够变化,可是在需要操作的文件较小时会闪动比较严重,还会消耗多余的资源在显示上面,所以执行效率并不算高,可能在学会其他知识,比如图形化界面时我会再来改进它。#include/************/#i

2016-01-24 20:24:21

1036

AverageisnotFastEnough!TimeLimit:2000/1000MS(Java/Others)    MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):5108    AcceptedSubmission(s):2075ProblemDescription

2016-01-21 22:09:28

用哈弗曼编码实现文件压缩和解压

今天脑洞大开突然想写一下,明明都要考试了,唉,怎么就管不住这手啊   总之呢,就是根据每种编码的出现频率把等长的编码换成变长的,据说理论上压缩比率是比较高的,可是为什么经检验我这个大部分时候压缩出来的比源文件还大呢?  哈弗曼编码的时候要先做一颗搜索树,查找的时候就按照当前一位是0还是1,找到叶子节点就找到了原编码。生成这颗树用一种贪心法,每次选两个出现频率最小的节点出来,连在一个

2016-01-16 21:32:25

1035

RobotMotionTimeLimit:2000/1000MS(Java/Others)    MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):8660    AcceptedSubmission(s):3987ProblemDescriptionAroboth

2016-01-15 22:01:13

1011

StarshipTroopersTimeLimit:10000/5000MS(Java/Others)    MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):15189    AcceptedSubmission(s):4085ProblemDescriptionYou,t

2016-01-09 17:48:42

1034

CandySharingGameTimeLimit:2000/1000MS(Java/Others)    MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):4629    AcceptedSubmission(s):2832ProblemDescriptionAnumbe

2016-01-09 16:49:26

1033

EdgeTimeLimit:2000/1000MS(Java/Others)    MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):2622    AcceptedSubmission(s):1661ProblemDescriptionForproductsthatare

2016-01-07 18:38:08

查看更多

勋章 我的勋章
    暂无奖章