public class Solution { public int maxArea(int[] height) { int maxa = 0; int maxi = 0; if(height.lengthi;j--){ if(height[j]>height[i]){ ... ...
分类:
其他好文 时间:
2017-07-25 22:37:40
阅读次数:
198
1、为什么要用函数#1.避免代码重用#2.提高代码的可读性 2、函数的定义def 函数名(参数1,参数2): '''函数注释''' print("函数体") return "返回值" 3、函数调用返回值 = 函数名(参数1,参数2) 4、函数定义——返回值#关键字:return#return的作用: ...
分类:
编程语言 时间:
2017-07-25 22:36:47
阅读次数:
231
题目链接https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=666 题目大意: 输入一个n,求出所有abcde/fghij=n的情况。 思路:枚举所有情况。因为 ...
分类:
其他好文 时间:
2017-07-25 22:34:41
阅读次数:
136
Bimokh is Mashmokh's boss. For the following n days he decided to pay to his workers in a new way. At the beginning of each day he will give each work ...
分类:
其他好文 时间:
2017-07-25 22:30:55
阅读次数:
154
项目中偶尔用到判断浏览器类型及相关版本问题,现记录相关代码: 测试: ...
分类:
编程语言 时间:
2017-07-25 21:22:46
阅读次数:
221
Fedoradnf -y install wqy-bitmap-fonts wqy-zenhei-fonts wqy-unibit-fonts wqy-microhei-fonts ...
分类:
其他好文 时间:
2017-07-25 21:15:49
阅读次数:
153
Given two integers, a and b, you should check whether a is divisible by b or not. We know that an integer a is divisible by an integer b if and only i ...
分类:
其他好文 时间:
2017-07-25 21:10:02
阅读次数:
162
?? 寻找正在连接中的网络连接,并开启网络连接的网络连接共享功能。 注意:要设置为管理员权限启动project。否则EnableSharing会失败。 #include <Windows.h> #include <NetCon.h> #include <locale> #include <stdio ...
分类:
其他好文 时间:
2017-07-25 21:09:26
阅读次数:
169
代码: void per(vector<int> nums,int start,vector<vector<int> > &result){ if(start==nums.size()-1){ result.push_back(nums); } else{ for(int i=start;i<num ...
分类:
其他好文 时间:
2017-07-25 19:59:48
阅读次数:
166