- 博客(10)
- 收藏
- 关注
原创 随笔-算法总结启动
自从实习之后就把算法撂下了,感觉在工程里面摸鱼摸的问题抽象能力越来越弱,打算通过捡算法重新锻炼起来。 难受的是发现很多算法之前用的很流畅的现在不明白了,有一种丢了好多钱的感觉,希望这次总结记录能够帮助以后快速回忆吧,喵~...
2018-08-18 13:35:26 188
原创 L1-002. 打印沙漏
/* L1-002. 打印沙漏 本题要求你写个程序把给定的符号打印成沙漏的形状。例如给定17个“*”,要求按下列格式打印 ***** *** * *** ***** 所谓“沙漏形状”,是指每行输出奇数个符号;各行符号中心对齐;相邻两行符号数差2; 符号数先从大到小顺序递减到1,再从小到大顺序递增;首尾符号数相等。 给定任意N个符号,不一定能正好组成一个沙漏。要求打印出的沙漏能用掉
2016-06-05 16:08:16 1530
原创 杭电 1082【矩阵乘法次数的运算】
Matrix Chain Multiplication Problem Description Matrix 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 773
原创 杭电 1042【N的阶乘】
N! Problem Description Given an integer N(0 ≤ N ≤ 10000), your task is to calculate N! Input One N in one line, process to the end of file. Output For each N, output N! in one line.
2016-06-05 16:01:28 783
原创 杭电 1039【判断密码】
Easier Done Than Said? Problem Description Password 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 803
原创 杭电 1033【转向】
Edge Input The 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 452
原创 杭电 1032【一种规律运算】
The 3n + 1 problem Input The 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 689
原创 杭电 1031【Design T-Shirt】
Design T-Shirt problem Description Soon 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 432
原创 杭电 1022【火车的出栈入栈】
Train Problem I Problem Description As 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 582
原创 杭电 1020【统计连续相同的字符】
Encoding Problem Description Given 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 438
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人