ccz181078

  博客园 :: 首页 :: 新随笔 :: 联系 :: :: 管理 ::

2017年1月18日

摘要: https://www.codechef.com/JAN17 Cats and Dogs 签到题 #include<cstdio> int min(int a,int b){return a<b?a:b;} int main(){ int T,a,b,c; for(scanf("%d",&T);T; 阅读全文
posted @ 2017-01-18 21:12 nul 阅读(843) 评论(0) 推荐(0)

摘要: Description 给出n个结点的树结构T,其中每一个结点上有一个字符,这里我们所说的字符只考虑大写字母A到Z,再给出长度为m 的模式串s,其中每一位仍然是A到z的大写字母。Alice希望知道,有多少对结点<u,v>满足T上从u到V的最短路径 形成的字符串可以由模式串S重复若干次得到?这里结点对 阅读全文
posted @ 2017-01-18 13:52 nul 阅读(694) 评论(0) 推荐(0)