唉,被班级合唱和复变考试搞得心力交瘁。新算法学不进去,更新下吧 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
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
1.输入一个数值,判断是否为正数,负数,小数,以及字符串 ...
分类:
编程语言 时间:
2019-11-15 11:56:31
阅读次数:
87
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
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
简述 该功能在编译器报错的时候启用,并以为http服务的形式提供为给/后端调用。输入为: 输出为: 使用 效果 这里展示了对于常见的初级错误,该功能的运行效果(结果较多,这里选取两个展示): 参考 此功能实在 "Pycee" 的基础上修改而来。 ...
分类:
其他好文 时间:
2019-11-11 18:25:39
阅读次数:
81
题目链接: "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
默认用法 public void alertDialog(View view) { AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle("弹出窗"); builder.setMessage("提示 ...
分类:
移动开发 时间:
2019-11-07 19:28:22
阅读次数:
118
原题链接 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
链接: 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