发表评论取消回复
相关阅读
相关 【CF516D】Drazil and Morning Exercise
[题目][Link 1] 首先我们知道,在树上距离一个点最远的点一定是直径的两个端点之一 首先两遍\\(\\rm dfs\\)把直径求出来,定义\\(d(u)\\)表示点\
相关 「CF525D」Arthur and Walls
题目链接 [戳我][Link 1] \\(Solution\\) 如果一个``要更改,那么一个四个格子的正方形只有他一个是``,bfs弄一下就好了 \\(Co
相关 【CF908D】New Year and Arbitrary Arrangement
Problem Description 给定三个数 \\(k,pa,pb\\) ,每次有 \\(\\frac\{pa\}\{pa+pb\}\\) 的概率往后面添加一
相关 HDU 4985-Little Pony and Permutation(模拟置换)
Little Pony and Permutation Time Limit : 2000/1000ms (Java/Other) Memory Limit : 327
相关 Little Artem and Grasshopper
题目链接:http://codeforces.com/contest/669/my 题意: 心得:一直走的情况,只要这个人跳到之前有调到的格子,就会一直循环下去。当调到 0
相关 Codeforces 276D. Little Girl and Maximum XOR(模拟)
A little girl loves problems on bitwise operations very much. Here's one of them. You a
相关 【bitset+string+关闭流同步优化】Oleg and Little Ponies URAL - 2108
Think: 1知识点:【bitset+string+关闭流同步】 2题意:第1行输入n、m,第2行至第m+1行输入m对长度为n的01串bt\[i\]\[j\],第m+
相关 【CF453D】 Little Pony and Elements of Harmony(FWT)
题面 [传送门][Link 1] 设\\(a\\)的递推公式为 \\\[a\_i=\\sum\_ja\_jb\[count(i\\oplus j)\]\\\] 其中
相关 cf1173 D. Nauuo and Circle
链接 \[cf\][http://codeforces.com/contest/1175/problem/F][http_codeforces.com_contest_1
相关 CF 148D Bag of mice (概率DP)
题目链接:http://codeforces.com/problemset/problem/148/D 题意:袋子里有w只白鼠和b只黑鼠,由公主开始,公主和龙轮流从袋子中抓一
还没有评论,来说两句吧...