DP
悠小白
这个作者很懒,什么都没留下…
展开
-
UVA1025-A Spy in the Metro
https://vjudge.net/contest/244534#problem#include<iostream>#include<cstdio>#include<cstring>using namespace std;const int inf=0x3f3f3f3f;int n,tim,m1,m2,temp;int t[205],d1[...原创 2018-08-13 23:05:47 · 93 阅读 · 0 评论 -
HDU2089-不要62
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2089d[i][j]表示i位数,首位为j时有多少是符合题意的.#include<iostream>#include<cstdio>using namespace std;int d[10][10],cnt[10];void init(){ d[0][...原创 2018-08-29 18:31:56 · 270 阅读 · 0 评论