~~~DP~~~
ashrkq
这个作者很懒,什么都没留下…
展开
-
ZZULI 1921: B
1921: B Time Limit: 1 Sec Memory Limit: 128 MB Submit: 249 Solved: 22SubmitStatusWeb BoardDescription 给定一个长度为n的数字序列a,从中选取一个长为m的子序列b满足 b[i]&b[i-1]!=0 (2<=i<=m) 求最大的m。Input 第一行输入一个整数t,代表有t组测试数据。原创 2016-08-18 19:29:50 · 260 阅读 · 0 评论 -
ZZULI 1904: 小火山的股票交易
ZZULI 1904原创 2016-08-19 09:37:08 · 334 阅读 · 0 评论 -
龟兔赛跑
龟兔赛跑 据说在很久很久以前,可怜的兔子经历了人生中最大的打击——赛跑输原创 2016-08-08 11:54:47 · 361 阅读 · 0 评论 -
最长回文子串
好久没有写博客了 对于最长 回文子串第一次做 写个 博客纪念一下要求最长回文子串的话 有三种方法 1. 暴力枚举所有的子串然后判断是否回文。 2. 就是把每个字符看成中间的那个字符然后枚举长度 3. 就是DP了 DP[i]=min(DP[id*2-i],mx] id是最长子串的中点 mx是最长点 这是代码自己琢磨吧#include "cstdio" #include "io原创 2016-11-05 02:12:20 · 264 阅读 · 0 评论 -
C. Journey
C. Journey time limit per test3 seconds memory limit per test256 megabytes inputstandard input outputstandard output Recently Irina arrived to one of the most famous cities of Berland — the Berlat原创 2016-10-07 01:39:05 · 297 阅读 · 0 评论