4 tookkke

尚未进行身份认证

蒟蒻!

等级
TA的排名 14w+

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

QT做的推箱子游戏

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

2017-01-17 20:41:28

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

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

红黑树

跟着《算法导论》写的红黑树,带迭代器,能实现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

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

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

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

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

大数模版

动态分配内存,由数的十进制位数决定。效率不是很高,但使用方便#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

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

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

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

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

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

2016-01-24 20:24:21

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

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

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

2016-01-16 21:32:25

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

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

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

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

查看更多

勋章 我的勋章
    暂无奖章