10 2018 档案

摘要:一、前言 在第一章强化学习简介中,我们提到强化学习过程可以看做一系列的state、reward、action的组合。本章我们将要介绍马尔科夫决策过程(Markov Decision Processes)用于后续的强化学习研究中。 二、马尔科夫过程(Markov Processes) 2.1 马尔科夫 阅读全文
posted @ 2018-10-31 23:20 StarHai 阅读(1863) 评论(0) 推荐(0) 编辑
摘要:3085: 反质数加强版SAPGAP Description 先解释一下SAPGAP=Super AntiPrime, Greatest AntiPrime(真不是网络流),于是你就应该知道本题是一个关于反质数(Antiprime)的问题。下面给出反质数的定义: 将一个正整数i的约数个数记为g(i) 阅读全文
posted @ 2018-10-31 16:39 StarHai 阅读(347) 评论(0) 推荐(0) 编辑
摘要:1053: [HAOI2007]反素数ant Description 对于任何正整数x,其约数的个数记作g(x)。例如g(1)=1、g(6)=4。如果某个正整数x满足:g(x)>g(i) 0<i<x ,则称x为反质数。例如,整数1,2,4,6等都是反质数。现在给定一个数N,你能求出不超过N的最大的反 阅读全文
posted @ 2018-10-31 16:21 StarHai 阅读(224) 评论(0) 推荐(0) 编辑
摘要:引言: 最近和实验室的老师做项目要用到强化学习的有关内容,就开始学习强化学习的相关内容了。也不想让自己学习的内容荒废掉,所以想在博客里面记载下来,方便后面复习,也方便和大家交流。 一、强化学习是什么? 定义 首先先看一段定义:Reinforcement learning is learning wh 阅读全文
posted @ 2018-10-31 00:29 StarHai 阅读(1686) 评论(0) 推荐(0) 编辑
摘要:3083: 遥远的国度 Description 描述zcwwzdjn在追杀十分sb的zhx,而zhx逃入了一个遥远的国度。当zcwwzdjn准备进入遥远的国度继续追杀时,守护神RapiD阻拦了zcwwzdjn的去路,他需要zcwwzdjn完成任务后才能进入遥远的国度继续追杀。 问题是这样的:遥远的国 阅读全文
posted @ 2018-10-30 00:01 StarHai 阅读(343) 评论(0) 推荐(0) 编辑
摘要:3065: 带插入区间K小值 Description 从前有n只跳蚤排成一行做早操,每只跳蚤都有自己的一个弹跳力a[i]。跳蚤国王看着这些跳蚤国欣欣向荣的情景,感到非常高兴。这时跳蚤国王决定理性愉悦一下,查询区间k小值。他每次向它的随从伏特提出这样的问题: 从左往右第x个到第y个跳蚤中,a[i]第k 阅读全文
posted @ 2018-10-28 15:59 StarHai 阅读(282) 评论(0) 推荐(0) 编辑
摘要:3064: Tyvj 1518 CPU监控 Description Bob需要一个程序来监视CPU使用率。这是一个很繁琐的过程,为了让问题更加简单,Bob会慢慢列出今天会在用计算机时做什么事。 Bob会干很多事,除了跑暴力程序看视频之外,还会做出去玩玩和用鼠标乱点之类的事,甚至会一脚踢掉电源……这些 阅读全文
posted @ 2018-10-28 13:28 StarHai 阅读(318) 评论(0) 推荐(0) 编辑
摘要:3040: 最短路(road) Description N个点,M条边的有向图,求点1到点N的最短路(保证存在)。1<=N<=1000000,1<=M<=10000000 N个点,M条边的有向图,求点1到点N的最短路(保证存在)。1<=N<=1000000,1<=M<=10000000 Input 阅读全文
posted @ 2018-10-25 23:10 StarHai 阅读(422) 评论(0) 推荐(0) 编辑
摘要:3224: Tyvj 1728 普通平衡树 Description 您需要写一种数据结构(可参考题目标题),来维护一些数,其中需要提供以下操作:1. 插入x数2. 删除x数(若有多个相同的数,因只删除一个)3. 查询x数的排名(若有多个相同的数,因输出最小的排名)4. 查询排名为x的数5. 求x的前 阅读全文
posted @ 2018-10-18 00:06 StarHai 阅读(205) 评论(0) 推荐(0) 编辑
摘要:Description 请写一个程序,要求维护一个数列,支持以下 6 种操作: 请注意,格式栏 中的下划线‘ _ ’表示实际输入文件中的空格 请写一个程序,要求维护一个数列,支持以下 6 种操作: 请注意,格式栏 中的下划线‘ _ ’表示实际输入文件中的空格 Input 输入的第1 行包含两个数N 阅读全文
posted @ 2018-10-18 00:03 StarHai 阅读(300) 评论(0) 推荐(0) 编辑
摘要:Description 小 X 自幼就很喜欢数。但奇怪的是,他十分讨厌完全平方数。他觉得这些数看起来很令人难受。由此,他也讨厌所有是完全平方数的正整数倍的数。然而这丝毫不影响他对其他数的热爱。 这天是小X的生日,小 W 想送一个数给他作为生日礼物。当然他不能送一个小X讨厌的数。他列出了所有小X不讨厌 阅读全文
posted @ 2018-10-18 00:00 StarHai 阅读(452) 评论(0) 推荐(1) 编辑
摘要:2301: [HAOI2011]Problem b Description 对于给出的n个询问,每次求有多少个数对(x,y),满足a≤x≤b,c≤y≤d,且gcd(x,y) = k,gcd(x,y)函数为x和y的最大公约数。 Input 第一行一个整数n,接下来n行每行五个整数,分别表示a、b、c、 阅读全文
posted @ 2018-10-14 20:49 StarHai 阅读(234) 评论(0) 推荐(0) 编辑
摘要:PUBG is a multiplayer online battle royale video game. In the game, up to one hundred players parachute onto an island and scavenge for weapons and eq 阅读全文
posted @ 2018-10-14 20:34 StarHai 阅读(377) 评论(0) 推荐(0) 编辑
摘要:BaoBao is trapped in a one-dimensional maze consisting of grids arranged in a row! The grids are numbered from 1 to from left to right, and the -th gr 阅读全文
posted @ 2018-10-14 20:30 StarHai 阅读(243) 评论(0) 推荐(0) 编辑
摘要:Given an array of integers , we say a set is a prime set of the given array, if and is prime. BaoBao has just found an array of integers in his pocket 阅读全文
posted @ 2018-10-14 20:25 StarHai 阅读(634) 评论(0) 推荐(1) 编辑
摘要:DreamGrid has a nonnegative integer . He would like to divide into nonnegative integers and minimizes their bitwise or (i.e. and should be as small as 阅读全文
posted @ 2018-10-14 20:18 StarHai 阅读(608) 评论(0) 推荐(0) 编辑
摘要:BaoBao has just found a string of length consisting of 'C' and 'P' in his pocket. As a big fan of the China Collegiate Programming Contest, BaoBao thi 阅读全文
posted @ 2018-10-14 20:09 StarHai 阅读(434) 评论(0) 推荐(0) 编辑
摘要:Crusaders Quest is an interesting mobile game. A mysterious witch has brought great darkness to the game world, and the only hope for your kingdom is 阅读全文
posted @ 2018-10-14 20:07 StarHai 阅读(714) 评论(0) 推荐(0) 编辑
摘要:The 2017 China Collegiate Programming Contest Qinhuangdao Site is coming! There will be teams participating in the contest, and the contest will be he 阅读全文
posted @ 2018-10-14 20:05 StarHai 阅读(598) 评论(0) 推荐(0) 编辑
摘要:Consider a un-rooted tree T which is not the biological significance of tree or plant, but a tree as an undirected graph in graph theory with n nodes, 阅读全文
posted @ 2018-10-14 01:16 StarHai 阅读(568) 评论(0) 推荐(0) 编辑
摘要:Here N (N ≥ 3) rabbits are playing by the river. They are playing on a number line, each occupying a different integer. In a single move, one of the o 阅读全文
posted @ 2018-10-14 01:14 StarHai 阅读(542) 评论(0) 推荐(0) 编辑
摘要:Little boxes on the hillside. Little boxes made of ticky-tacky. Little boxes. Little boxes. Little boxes all the same. There are a green boxes, and b 阅读全文
posted @ 2018-10-14 01:12 StarHai 阅读(575) 评论(0) 推荐(0) 编辑
摘要:The ant Welly now dedicates himself to urban infrastructure. He came to the kingdom of numbers and solicited an audience with the king. He recounted h 阅读全文
posted @ 2018-10-14 01:10 StarHai 阅读(546) 评论(0) 推荐(0) 编辑
摘要:A triangle is a Heron’s triangle if it satisfies that the side lengths of it are consecutive integers t&#8722;1, t, t+ 1 and thatits area is an intege 阅读全文
posted @ 2018-10-14 01:07 StarHai 阅读(471) 评论(0) 推荐(0) 编辑
摘要:Description 七夕祭上,Vani牵着cl的手,在明亮的灯光和欢乐的气氛中愉快地穿行。这时,在前面忽然出现了一台太鼓达人机台,而在机台前坐着的是刚刚被精英队伍成员XLk、Poet_shy和lydrainbowcat拯救出来的的applepi。看到两人对太鼓达人产生了兴趣,applepi果断闪 阅读全文
posted @ 2018-10-11 01:01 StarHai 阅读(398) 评论(1) 推荐(0) 编辑

点击右上角即可分享
微信分享提示