ICode9

精准搜索请尝试: 精确搜索
  • AI与Python - 强化学习2019-04-06 10:48:22

    在本章中,您将详细了解使用Python在AI中强化学习的概念。 强化学习的基础知识 这种类型的学习用于基于评论者信息来加强或加强网络。也就是说,在强化学习下训练的网络从环境中接收一些反馈。然而,反馈是有评价性的,而不是像监督学习那样具有指导性。基于该反馈,网络执行权重的调整

  • Odd Palindrome Gym - 101652N2019-04-05 20:50:59

    We say that a string is odd if and only if all palindromic substrings of the string have odd length. Given a string s, determine if it is odd or not. A substring of a string s is a nonempty sequence of consecutive characters from s. A palindromic substrin

  • 2017 United Kingdom and Ireland Programming(Gym - 101606)2019-04-04 09:54:52

    题目很水。睡过了迟到了一个小时,到达战场一看,俩队友AC五个了。。 就只贴我补的几个吧。   B - Breaking Biscuits Gym - 101606B 旋转卡壳模板题。然后敲错了。 代码是另一种做法:对于每条边,枚举两边的所有点到直线的距离,分别取最大值,然后加起来。 #include <bits/stdc++.h>#defin

  • 2018春季训练02: JU Flash Contest Gym - 102035 训练报告与复盘2019-03-23 22:57:04

     这场题极其简单 Solved 19 / 19 A Gym 102035A N integers 略 Solved 10 / 33 B Gym 102035B Mahmoud the Thief 用map记录所有数%m的出现次数,然后按顺序模拟,如果不同模数的种类数只剩下一种,那么就结束 Solved 2 / 14 C Gym 102035C Apple Shops 二分最

  • D - Counting Test Gym - 101532D 字符串2019-03-12 15:37:57

    Yousef has a string s that is used to build a magical string w by repeating the string s infinitely many times. For example, if s = aabbb , then w = aabbbaabbbaabbbaabbb.... Mohammad always claims that his memory is strong, and that his ability to count i

  • Gym 240084E - Correct Bracket Sequence Editor - [对顶栈]2019-03-11 16:41:19

    题目链接:https://codeforces.com/gym/240084/problem/E   题意: 给出一个已经匹配的括号串,给出起始的光标位置(光标总是指向某个括号)。 有如下操作:   1、往左移动一下光标;   2、往左移动一下光标;   3、删除当前光标指向的括号,以及和它匹配的那个括号,以及这两个括号之间的所有

  • A - Arcade Game Gym - 100814A2019-03-08 21:56:00

    A - Arcade Game  Gym - 100814A  &:给一个n,n的每一位数都是不相同的,现在给你一个n,每一次可以随机让n的每一位重新排列,问能够让n排列之后变成最大数的期望。 &:自己忘记了那个生成排列的函数了,于是自己随机写了写,于是就WA了,真的是,还找不到哪里出错了。 &:于是来直接用 next_perm

  • [Codeforces Gym][GCPC2018]2019-03-04 14:49:45

    首先我想说我可能又要开始更blog了...但不是在原来的平台... 自己忘性挺大的...有的时候凭着一点模糊的记忆...永远都没有办法将事情变得系统... Acyclic_SD's First Training... 首先吐槽,这个队名真有那么难记吗...) 赛场上 solved 10 out of 13 赛后浩然帮改过了K 第二天我补

  • 【金色】种瓜得瓜,种豆得豆 Gym - 102072H (线段树)2019-02-24 15:51:27

    题目链接:https://cn.vjudge.net/problem/Gym-102072H 题目大意:中文题目 具体思路:通过两棵线段树来维护,第一棵线段树来维护当前坐标的点的日增长速度(默认每一年的增长速度都是当前年份的增长速度),对于第一棵线段树,肯定会存在多算的情况,那么我们第二棵线段树就维护每一个点的多算的情

  • gym 1019862019-02-22 21:50:50

    A - Secret of Chocolate Poles 队友写的。 好像水水的。 //#pragma GCC optimize(2)//#pragma GCC optimize(3)//#pragma GCC optimize(4)//#pragma GCC optimize("unroll-loops")//#pragma comment(linker, "/stack:200000000")//#pragma GCC optimize("Ofa

  • C - Portals Gym - 102006C (网络流最小割)2019-02-19 14:53:12

    题目链接:https://cn.vjudge.net/contest/283918#problem/C 题目大意:T个测试数据,然后给你一个字符串,每一个字符串包括‘s’,‘t’,‘o’,‘#’,‘.’ 。's'代表起点,‘t’代表终点,‘o’代表传送门(传送门之间可以无限次互相到达),‘#’代表墙壁,‘.’代表空的房间,一个人从s开始,只要不是‘#‘,

  • Gym - 101889D:Daunting device (老司机树)2019-02-17 19:43:26

    题意:N个格子排出一排,开始格子颜色都是1;现在有M个操作:            或,把区间[L,R]颜色改为c;            或,查询一共有多少格子颜色为c。            最后求颜色最多的数量。 数据是随机的,且强制在线。 思路:ODT裸题。维护相同颜色的区间。  split拆分

  • Robots Gym - 101915G2019-02-16 10:39:59

    传送门   The Robotics Olympiad teams were competing in a contest.  There was a tree drawn on the floor, consisting of n nodes and n - 1 edges. The nodes are numbered from 1 to n, and each edge has a weight. The tree is rooted at the first node. q 

  • gym 102082G BZOJ4240 贪心+树状数组2019-02-14 18:02:26

    4240: 有趣的家庭菜园 Time Limit: 10 Sec  Memory Limit: 256 MBSubmit: 756  Solved: 349[Submit][Status][Discuss] Description 对家庭菜园有兴趣的JOI君每年在自家的田地中种植一种叫做IOI草的植物。JOI君的田地沿东西方向被划分为N个区域,由西到东标号为1~N。IOI草一共

  • L - The Shortest Path Gym - 101498L (dfs式spfa判断负环)2019-02-14 10:01:54

    题目链接:https://cn.vjudge.net/contest/283066#problem/L 题目大意:T组测试样例,n个点,m条边,每一条边的信息是起点,终点,边权。问你是不是存在负环,如果存在的话输出-inf,否则的话,输出最小路径(两个点之间)。 具体思路:一般的spfa只能判断一个点到其他点的最短距离,但是这个题目让我们求的是

  • Gym 101915G Robots2019-02-13 21:50:37

    G. Robots time limit per test5.0 s memory limit per test256 MB inputstandard input outputstandard output The Robotics Olympiad teams were competing in a contest. There was a tree drawn on the floor, consisting of n nodes and n - 1 edges. The nodes

  • (寒假开黑gym)2018 ACM-ICPC, Syrian Collegiate Programming Contest2019-02-12 20:53:41

    layout: post title: (寒假开黑gym)2018 ACM-ICPC, Syrian Collegiate Programming Contest author: "luowentaoaa" catalog: true tags: mathjax: true - codeforces 传送门 付队! 许老师! Hello SCPC 2018! (签到) #include<bits/stdc++.h> using namespace std; typedef

  • Gym - 101806R :Recipe(分治+斜率优化)2019-02-06 11:37:58

      #include<bits/stdc++.h>#define pii pair<ll,int>#define mp make_pair#define ll long long#define rep(i,a,b) for(int i=a;i<=b;i++)using namespace std;const int maxn=300010;const int inf=1e9;ll dp[maxn],F[maxn],C[maxn],L[maxn];pii a[maxn],b[

  • Gym .101879 USP Try-outs (寒假自训第七场)2019-02-04 20:44:07

    B .Aesthetics in poetry 题意:给定N个数,(N<2000 ,a[i] <=1e9),让你找一个最大的K,使得N个数膜K的余数个数全都等于N/K个。 思路:我们找到N的因子,然后验证即可,复杂度O(N^2) #include<bits/stdc++.h>#define rep(i,a,b) for(int i=a;i<=b;i++)using namespace std;const int maxn=1000010;

  • I - Older Brother Gym - 101490I2019-02-02 18:37:58

    题目链接:https://cn.vjudge.net/problem/Gym-101490I 题目大意:给你一个整数,问你这个整数能不能表示成一个素数的k次方? 具体思路:对于每一个数,我们先判断他是不是素数,如果是素数的话,就一定可以。其次,我们看一下当前的这个数能不能唯一的素因数分解。 PS:因为题目数据量是1e9,我们不可能

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有