
dp
Hum0r0_假友情
这个作者很懒,什么都没留下…
展开
-
Count the string HDU - 3336
It is well known that AekdyCoin is good at string problems as well as number theory problems. When given a string s, we can write down all the non-empty prefixes of this string. For example: s: "abab...原创 2019-01-04 11:19:00 · 217 阅读 · 0 评论 -
C. Ayoub and Lost Array
思路:DP #include <bits/stdc++.h> using namespace std; const long long int mod=1e9+7; long long int dp[200100][10]; int main() { long long int n,l,r; scanf("%lld%lld%lld",&n,&...原创 2019-01-21 08:51:21 · 947 阅读 · 1 评论