码迷,mamicode.com
首页 >  
搜索关键字:positive    ( 2430个结果
【kuangbin带你飞】 MST专题
唉,被班级合唱和复变考试搞得心力交瘁。新算法学不进去,更新下吧 A - Til the Cows Come Home The Head Elder of the tropical island of Lagrishan has a problem. A burst of foreign aid mo ...
分类:其他好文   时间:2019-11-16 23:16:49    阅读次数:91
<Array> 41 134
41. First Missing Positive 思路是把1放在数组第一个位置 nums[0],2放在第二个位置 nums[1],即需要把 nums[i] 放在 nums[nums[i] - 1]上,遍历整个数组,如果 nums[i] != i + 1, 而 nums[i] 为整数且不大于n,另 ...
分类:其他好文   时间:2019-11-16 17:34:13    阅读次数:67
Python核心编程练习题
1.输入一个数值,判断是否为正数,负数,小数,以及字符串 ...
分类:编程语言   时间:2019-11-15 11:56:31    阅读次数:87
happy number
Write an algorithm to determine if a number is "happy". A happy number is a number defined by the following process: Starting with any positive intege ...
分类:移动开发   时间:2019-11-13 23:56:47    阅读次数:181
209. Minimum Size Subarray Sum
Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ≥ s. If there isn't ...
分类:其他好文   时间:2019-11-11 18:43:13    阅读次数:78
(Model)针对编译错误的友好提示
简述 该功能在编译器报错的时候启用,并以为http服务的形式提供为给/后端调用。输入为: 输出为: 使用 效果 这里展示了对于常见的初级错误,该功能的运行效果(结果较多,这里选取两个展示): 参考 此功能实在 "Pycee" 的基础上修改而来。 ...
分类:其他好文   时间:2019-11-11 18:25:39    阅读次数:81
HDU 5183 Negative and Positive (NP) (手写哈希)
题目链接: "HDU 5183" Problem Description When given an array $(a_0,a_1,a_2,?a_{n?1})$ and an integer $K$, you are expected to judge whether there is a pai ...
分类:其他好文   时间:2019-11-09 00:09:19    阅读次数:98
安卓—自定义alert弹出窗口
默认用法 public void alertDialog(View view) { AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle("弹出窗"); builder.setMessage("提示 ...
分类:移动开发   时间:2019-11-07 19:28:22    阅读次数:118
欧拉函数的应用(hdu 3501)
原题链接 http://acm.hdu.edu.cn/showproblem.php?pid=3501 Given a positive integer N, your task is to calculate the sum of the positive integers less than N ...
分类:其他好文   时间:2019-11-06 12:53:22    阅读次数:69
The 2019 China Collegiate Programming Contest Harbin Site J. Justifying the Conjecture
链接: https://codeforces.com/gym/102394/problem/J 题意: The great mathematician DreamGrid proposes a conjecture, which states that: Every positive integer ...
分类:其他好文   时间:2019-11-05 13:52:30    阅读次数:139
2430条   上一页 1 ... 18 19 20 21 22 ... 243 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!