摘要: #include <algorithm> #include <iostream> #include <cstring> #include <cstdio> #include <vector> #include <queue> using namespace std; const int maxn = 阅读全文
posted @ 2020-08-20 11:48 Faker_fan 阅读(151) 评论(0) 推荐(0) 编辑
摘要: #include <algorithm> #include <iostream> #include <cstring> #include <cstdio> #include <vector> #include <queue> using namespace std; const int maxn = 阅读全文
posted @ 2020-08-19 17:10 Faker_fan 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 题意: 有三个人各有x,y,z块钱,每次最多钱的人会把有1/2的概率給别人一块钱,问要给多少次,才能平均三个人的钱数。 0<x,y,z<=1e6 首先肯定是有明显的状态转移关系的。 假设x>=y>z 很容易列出dp[x][y][z]=1/2dp[x-1][y+1][z]+1/2dp[x-1][y][ 阅读全文
posted @ 2020-08-17 21:30 Faker_fan 阅读(160) 评论(0) 推荐(0) 编辑
摘要: #include <algorithm> #include <iostream> #include <cstring> #include <cstdio> #include <vector> #include <queue> #define R int #define I inline void # 阅读全文
posted @ 2020-08-15 15:59 Faker_fan 阅读(160) 评论(0) 推荐(0) 编辑
摘要: hdu6800 #include <iostream> #include <string.h> #include <queue> #include <stack> #include <map> #include <stdio.h> #include <algorithm> #include <mat 阅读全文
posted @ 2020-08-02 17:45 Faker_fan 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 航电多校第三场 这道题的思维很是巧妙啊,虽然赛时大概有了想法,但是当初没学会树套树,还是过不了的啊,感觉题解有点太难懂了,再一篇博客,分享一下自己标注过的std; 首先是这题一共只有两只手,而且按顺序跑n个点,也就是说,假如dp[i][j]代表着你左手在i,右手在j的时候的最优解,其实dp[i][j 阅读全文
posted @ 2020-08-02 16:04 Faker_fan 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 1.unique unique函数的函数原型如下: 只有两个参数,且参数类型都是迭代器: 1 iterator unique(iterator it_1,iterator it_2); 这种类型的unique函数是我们最常用的形式。其中这两个参数表示对容器中[it_1,it_2)范围的元素进行去重( 阅读全文
posted @ 2020-08-01 20:13 Faker_fan 阅读(184) 评论(0) 推荐(0) 编辑
摘要: Source Code Problem: 1279 User: Faker_fan Memory: 296K Time: 0MS Language: C++ Result: Accepted Source Code #include <iostream> #include <string.h> #i 阅读全文
posted @ 2020-07-02 20:39 Faker_fan 阅读(232) 评论(0) 推荐(0) 编辑
摘要: using System.Collections; using System.Collections.Generic; using UnityEngine; public class TransformHelper : MonoBehaviour { //在层级未知的时候查找子物体 // publi 阅读全文
posted @ 2020-06-14 22:08 Faker_fan 阅读(209) 评论(0) 推荐(0) 编辑
摘要: using System.Collections; using System.Collections.Generic; using UnityEngine; public class OpenDoor : MonoBehaviour { public string animName="Door"; 阅读全文
posted @ 2020-06-14 22:06 Faker_fan 阅读(1542) 评论(0) 推荐(0) 编辑