自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 收藏
  • 关注

原创 随笔-算法总结启动

自从实习之后就把算法撂下了,感觉在工程里面摸鱼摸的问题抽象能力越来越弱,打算通过捡算法重新锻炼起来。难受的是发现很多算法之前用的很流畅的现在不明白了,有一种丢了好多钱的感觉,希望这次总结记录能够帮助以后快速回忆吧,喵~...

2018-08-18 13:35:26 167

原创 L1-002. 打印沙漏

/*L1-002. 打印沙漏本题要求你写个程序把给定的符号打印成沙漏的形状。例如给定17个“*”,要求按下列格式打印***** *** * ********所谓“沙漏形状”,是指每行输出奇数个符号;各行符号中心对齐;相邻两行符号数差2;符号数先从大到小顺序递减到1,再从小到大顺序递增;首尾符号数相等。给定任意N个符号,不一定能正好组成一个沙漏。要求打印出的沙漏能用掉

2016-06-05 16:08:16 1511

原创 杭电 1082【矩阵乘法次数的运算】

Matrix Chain MultiplicationProblem DescriptionMatrix multiplication problem is a typical example of dynamical programming.Suppose you have to evaluate an expression like A*B*C*D*E where A,B,

2016-06-05 16:06:06 753

原创 杭电 1042【N的阶乘】

N!Problem DescriptionGiven an integer N(0 ≤ N ≤ 10000), your task is to calculate N!InputOne N in one line, process to the end of file. OutputFor each N, output N! in one line.

2016-06-05 16:01:28 764

原创 杭电 1039【判断密码】

Easier Done Than Said?Problem DescriptionPassword security is a tricky thing. Users prefer simple passwords that are easy to remember (like buddy), but such passwords are often insecure. Some si

2016-06-05 15:57:54 783

原创 杭电 1033【转向】

EdgeInputThe input contains several test cases, each on a separate line. Each line contains a nonempty string of characters A and V describing the longer edge of the sheet. You may assume that t

2016-06-05 15:55:17 429

原创 杭电 1032【一种规律运算】

The 3n + 1 problemInputThe input will consist of a series of pairs of integers i and j, one pair of integers per line. All integers will be less than 1,000,000 and greater than 0.You should

2016-06-05 15:52:49 668

原创 杭电 1031【Design T-Shirt】

Design T-Shirtproblem DescriptionSoon after he decided to design a T-shirt for our Algorithm Board on Free-City BBS, XKA found that he was trapped by all kinds of suggestions from everyone on the

2016-06-05 15:49:30 410

原创 杭电 1022【火车的出栈入栈】

Train Problem IProblem DescriptionAs the new term comes, the Ignatius Train Station is very busy nowadays. A lot of student want to get back to school by train(because the trains in the Ignatius T

2016-06-05 15:45:34 560

原创 杭电 1020【统计连续相同的字符】

EncodingProblem DescriptionGiven a string containing only 'A' - 'Z', we could encode it using the following method:1. Each sub-string containing k same characters should be encoded to "kX" w

2016-06-05 15:35:30 411

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除