码迷,mamicode.com
首页 >  
搜索关键字:two points    ( 13225个结果
[hdu-5795]A Simple Nim 博弈 尼姆博弈 SG函数打表找规律
【题目】题目链接 Two players take turns picking candies from n heaps,the player who picks the last one will win the game.On each turn they can pick any number ...
分类:其他好文   时间:2020-01-16 14:47:51    阅读次数:57
[LC] 796. Rotate String
We are given two strings, A and B. A shift on A consists of taking string A and moving the leftmost character to the rightmost position. For example, ...
分类:其他好文   时间:2020-01-16 12:45:23    阅读次数:79
链表(2)
链表的回文结构 对于一个链表,请设计一个时间复杂度为O(n),额外空间复杂度为O(1)的算法,判断其是否为回文结构。 给定一个链表的头指针 A ,请返回一个bool值,代表其是否为回文结构。保证链表长度小于等于900。 测试样例: Java C++ two sum https://www.nowco ...
分类:其他好文   时间:2020-01-16 12:28:50    阅读次数:69
AI-Adversarial Search
博弈 Game 的分类维度 Deterministic or stochastic? One, two, or more players? Zero sum? Perfect information (can you see the state)? Adversarial Search 对抗搜索 A ...
分类:其他好文   时间:2020-01-16 11:01:47    阅读次数:145
Educational Codeforces Round 80 (Rated for Div. 2) 题解
"Deadline" "Yet Another Meme Problem" "Two Arrays" "Minimax Problem" "Messenger Simulator" Deadline $$ Time Limit: 2 s\quad Memory Limit: 256 MB $$ 这是 ...
分类:其他好文   时间:2020-01-16 01:09:07    阅读次数:79
Educational Codeforces Round 80 (Rated for Div. 2)(C - Two Arrays )
C - Two Arrays 题目链接:https://codeforces.com/contest/1288/problem/C 题目: 题意:给你n,m,利用1~n之间的数(可重复)来组成长度为m的数组a,b,要求数组a非递减,数组b非递增,且a数组的数《=b数组中的数,求出a,b数组对数 思路 ...
分类:其他好文   时间:2020-01-15 19:42:36    阅读次数:60
leetcode No.2 两数相加 (python3实现)
来源 https://leetcode cn.com/problems/add two numbers/ 题目描述 给出两个?非空 的链表用来表示两个非负的整数。其中,它们各自的位数是按照?逆序?的方式存储的,并且它们的每个节点只能存储?一位?数字。 如果,我们将这两个数相加起来,则会返回一个新的链 ...
分类:编程语言   时间:2020-01-15 17:56:13    阅读次数:85
Two Arrays
"C. Two Arrays" $dp[i][j]$表示有$j$个数每个数的范围为$1~i$时的非递减排列种数,因为 n 和 m 的数据范围也不大,用记忆化搜索很快可以得出每一个值。 再来看满足条件时的$(a,b)$,$a$为非递减序列,$b$为非递增序列,所以$b$的最后一个数大于等于$a$的最后 ...
分类:其他好文   时间:2020-01-15 13:31:07    阅读次数:67
Educational Codeforces Round 80 (Rated for Div. 2) C - Two Arrays(DP)
"???♀? ???♀? ???♀?" 题意:从1~n里面选出来m个数字组成a数组,再选出来m个组成b数组,要求a非递减,b非递增,且bi =ai 1,说是选两个数组其实就是选出来一个长m 2的非递减数组 2,假设要从n的全排列中选出来m长的非递减数组,因为元素是可重复的,最多重复m次,其实就是相当 ...
分类:其他好文   时间:2020-01-15 12:12:59    阅读次数:71
A Simple Problem with Integers(树状数组区间变化和区间求和)
You have N integers, A1, A2, ... , AN. You need to deal with two kinds of operations. One type of operation is to add some given number to each number ...
分类:编程语言   时间:2020-01-14 23:36:47    阅读次数:105
13225条   上一页 1 ... 71 72 73 74 75 ... 1323 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!