hdu 1800 Flying to the Mars
hdu 1800 Flying to the Mars
题意:找出题给的最少的递增序列的个数,其中序列中每个数字不多于30位;序列长度不长于3000;
input:
4 (n)
10
20
30
04
output
1
思路:将节目转化为相同数的最多个数即可~~
这时就随便怎么搞了。我是直接用了map(开始不会hash啊…)来找mx;
但是和字符串hash相比,时间性能不好。之
原创
2016-01-26 00:07:20 ·
329 阅读 ·
0 评论