
杂
messyidea
只要心里欢喜,就算跑多远都不觉得累。
展开
-
求hufman编码
偷懒的写法,输入是随便一串字符串,比如“aaaaabsdfkhsdaa”,依次求字母出现概率,然后计算编码。/***********************************************\ |Author: M |Created Time: 2014-5-9 18:54:25 |File Name: hufman.cpp |Description: \*******原创 2014-08-03 23:04:47 · 325 阅读 · 0 评论 -
Codeforces Round #279 (Div. 2)
A. Team Olympiadtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe School №0 of the capital of Berland has原创 2014-11-23 20:42:20 · 666 阅读 · 0 评论 -
hdu 5090 Game with Pearls
Game with PearlsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 30 Accepted Submission(s): 29Problem DescriptionTom and Jerry原创 2014-11-02 18:38:20 · 443 阅读 · 0 评论 -
Codeforces Round #277 (Div. 2) D Valid Sets
D. Valid Setstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAs you know, an undirected connected graph wit原创 2014-11-12 13:23:08 · 380 阅读 · 0 评论 -
hdu 5071 模拟
ChatTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 647 Accepted Submission(s): 151Problem DescriptionAs everyone knows, DR原创 2014-10-24 08:56:49 · 478 阅读 · 0 评论 -
hdu 5101 select
SelectTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 210 Accepted Submission(s): 61Problem DescriptionOne day, Dudu, the mos原创 2014-11-08 23:16:14 · 351 阅读 · 0 评论 -
hdu 5007 Post Robot 水题
Post RobotTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 0 Accepted Submission(s): 0Problem Description DT is a big fan of原创 2014-09-14 18:42:19 · 405 阅读 · 0 评论 -
hdu 4951 Multiplication table 哈希水过
Multiplication tableTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 373 Accepted Submission(s): 182Problem DescriptionTeacher原创 2014-08-15 10:11:55 · 365 阅读 · 0 评论 -
AVL平衡树
自己实现的一个avl平衡树。原创 2014-08-03 23:05:58 · 333 阅读 · 0 评论 -
gcj Round 1A 2015 Mushroom Monster
Problem A. Mushroom MonsterThis contest is open for practice. You can try every problem as many times as you like, though we won't keep track of which problems you solve. Read the Quick-Start原创 2015-04-18 11:58:06 · 547 阅读 · 0 评论