码迷,mamicode.com
首页 >  
搜索关键字:perfect    ( 572个结果
python如何求水仙花数
水仙花数(Narcissistic number)也被称为超完全数字不变数(pluperfect digital invariant, PPDI)、自恋数、自幂数、阿姆斯壮数或阿姆斯特朗数(Armstrong number),水仙花数是指一个 3 位数,它的每个位上的数字的 3次幂之和等于它本身。 ...
分类:编程语言   时间:2020-04-26 14:14:54    阅读次数:120
1085 Perfect Sequence (25分)
Given a sequence of positive integers and another positive integer p. The sequence is said to be a perfect sequence if M≤m×p where M and m are the max ...
分类:其他好文   时间:2020-04-25 01:04:46    阅读次数:70
Codeforces Round #633 (Div. 2)
Codeforces Round 633(Div.2) $A.Filling\ Diamonds$ 答案就是构成的六边形数量+1 $B.Sorted\ Adjacent\ Differences$ 考虑排完序之后从中间开始一左一右选择即可 $C.Powered\ Addition$ 考虑对于每个数, ...
分类:其他好文   时间:2020-04-13 09:12:53    阅读次数:110
Educational Codeforces Round 73 (Rated for Div. 2)
题目链接:https://codeforces.com/contest/1221 A 2048 Game 随便搞搞。 B Knights 题意:在一个n\ n的棋盘中,每个格子放一个黑马或者白马。求一种放置方案使得互相攻击的异色马最多。 题解:奇偶染色。 C Perfect Team 题意:有c个代 ...
分类:其他好文   时间:2020-04-06 09:56:10    阅读次数:53
判断10步能不能回到原点
题目描述: # You live in the city of Cartesia where all roads are laid out in a perfect grid.# You arrived ten minutes too early to an appointment, so you ...
分类:其他好文   时间:2020-04-06 00:16:25    阅读次数:94
[LeetCode, not perfect] 992. Subarrays with K Different Integers
K个不同整数的子数组。题意是给定一个正整数数组 A,如果 A 的某个子数组中不同整数的个数恰好为 K,则称 A 的这个连续、不一定独立的子数组为好子数组。返回A中好子数组的数量。例子, Example 1: Input: A = [1,2,1,2,3], K = 2 Output: 7 Explan ...
分类:其他好文   时间:2020-04-04 09:53:38    阅读次数:53
924. 单词最短距离
924. 单词最短距离 中文English 给出一个单词列表和两个单词单词1,单词2,返回列表中这两个单词之间的最短距离。 样例 样例 1: 输入:["practice", "makes", "perfect", "coding", "makes"],"coding","practice" 输出:3 ...
分类:其他好文   时间:2020-03-29 01:20:53    阅读次数:68
[USACO4.2] The Perfect Stall - 二分图最大匹配
有 $N$ 牛 $M$ 棚,第 $i$ 头牛只能待在给定的一个牛棚集合里,一个牛棚只能容纳一头牛。求最多装多少头牛。 $N,M \leq 200$ Solution 难度:L1 二分图最大匹配裸题 ...
分类:其他好文   时间:2020-03-14 11:16:14    阅读次数:48
[CSGO]Nade Tails文档
https://forums.alliedmods.net/showthread.php?p=2140092 This is perfect for people looking to practice their smokes or other projectiles for competitiv ...
分类:其他好文   时间:2020-03-10 21:31:25    阅读次数:72
leetcode279 Perfect Squares
1 """ 2 Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n. 3 Example 1: 4 Inp ...
分类:其他好文   时间:2020-02-25 00:00:16    阅读次数:59
572条   上一页 1 2 3 4 5 6 ... 58 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!