码迷,mamicode.com
首页 >  
搜索关键字:positive    ( 2430个结果
Magic boy Bi Luo with his excited tree (树形dp)
Bi Luo is a magic boy, he also has a migic tree, the tree has NN nodes , in each node , there is a treasure, it's value is V[i]V[i], and for each edge ...
分类:其他好文   时间:2019-08-18 14:00:56    阅读次数:73
leetcode 数组 (python)
1.题目描述 给定一个范围在 1 ≤ a[i] ≤ n ( n = 数组大小 ) 的 整型数组,数组中的元素一些出现了两次,另一些只出现一次。 找到所有在 [1, n] 范围之间没有出现在数组中的数字。 您能在不使用额外空间且时间复杂度为O(n)的情况下完成这个任务吗? 你可以假定返回的数组不算在额 ...
分类:编程语言   时间:2019-08-17 17:50:59    阅读次数:86
【Django】ContentType组件 񝭗
原文: http://blog.gqylpy.com/gqy/297 "@[toc] 好,现在我们有这样一个需求,我们的商城里有很多的商品,然而节日要来了,我们要搞活动. 那么,我们就要设计优惠券,优惠券都有什么类型呢?满减的、折扣的、立减的、等等等... 我们对应着活动类型,对某类商品设计优惠卷, ...
分类:其他好文   时间:2019-08-17 17:46:58    阅读次数:115
Powerful array CodeForces - 86D (莫队算法)
An array of positive integers a1,?a2,?...,?an is given. Let us consider its arbitrary subarray al,?al?+?1...,?ar, where 1?≤?l?≤?r?≤?n. For every posit ...
分类:编程语言   时间:2019-08-16 19:05:56    阅读次数:127
2019 Multi-University Training Contest 6
HDU 6638-Snowy Smile Time Limit: 4000/4000 MS (Java/Others) Memory Limit: 524288/524288 K Problem Description There are n pirate chests buried in Byte ...
分类:其他好文   时间:2019-08-16 00:41:13    阅读次数:88
PAT Advanced 1041 Be Unique (20 分)
Being unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of winning is simple: one bets on a numbe ...
分类:其他好文   时间:2019-08-15 06:06:29    阅读次数:82
An easy problem(位运算)
As we known, data stored in the computers is in binary form.(数据以二进制形式存储于电脑之中。)The problem we discuss now is about the positive integers and its binary ...
分类:其他好文   时间:2019-08-13 13:42:30    阅读次数:110
1113 Integer Set Partition (25 分)
1113 Integer Set Partition (25 分) 1113 Integer Set Partition (25 分) 1113 Integer Set Partition (25 分) Given a set of N (>) positive integers, you are ...
分类:其他好文   时间:2019-08-11 12:49:05    阅读次数:97
UVA11388 GCD LCM
(链接点这儿) 题目: The GCD of two positive integers is the largest integer that divides both the integers without any remainder. The LCM of two positive inte ...
分类:其他好文   时间:2019-08-10 20:59:27    阅读次数:85
1103 Integer Factorization (30)
1103 Integer Factorization (30 分) 1103 Integer Factorization (30 分) The K?P factorization of a positive integer N is to write N as the sum of the P-th ...
分类:其他好文   时间:2019-08-10 17:13:30    阅读次数:97
2430条   上一页 1 ... 24 25 26 27 28 ... 243 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!