摘要: 大水题为了心情好点去写的结果思路很明确过程有点曲折超大数字的计算用字符串来解决换成减法也许会难点 1 #include 2 #include 3 using namespace std; 4 5 int main() 6 { 7 int T; 8 cin>>T; 9 i... 阅读全文
posted @ 2014-07-22 21:42 Run_dream 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 1343: Long LongTime Limit:1 SecMemory Limit:128 MBSubmit:180Solved:48[Submit][Status][Web Board]Description 现在有两个单调递增序列,第一个序列有N个整数,第二个序列有M个整数,现在你可以从第一... 阅读全文
posted @ 2014-07-22 20:55 Run_dream 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 简单的KMP好吧好吧还是花了一上午next[0] =-1还是看注释吧Problem DescriptionGiven two sequences of numbers : a[1], a[2], ...... , a[N], and b[1], b[2], ...... , b[M] (1 2 u... 阅读全文
posted @ 2014-07-22 13:31 Run_dream 阅读(122) 评论(0) 推荐(0) 编辑