码迷,mamicode.com
首页 >  
搜索关键字:ret    ( 30742个结果
Leetcode Array 11 Container With Most Water
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
python全栈开发从入门到放弃之函数基础
1、为什么要用函数#1.避免代码重用#2.提高代码的可读性 2、函数的定义def 函数名(参数1,参数2): '''函数注释''' print("函数体") return "返回值" 3、函数调用返回值 = 函数名(参数1,参数2) 4、函数定义——返回值#关键字:return#return的作用: ...
分类:编程语言   时间:2017-07-25 22:36:47    阅读次数:231
UVA - 725 Division
题目链接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
python日记----2017.7.25
一丶函数 二丶作业 ...
分类:编程语言   时间:2017-07-25 22:33:03    阅读次数:196
CodeForces - 415B Mashmokh and Tokens
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
JavaScript 浏览器类型及版本号
项目中偶尔用到判断浏览器类型及相关版本问题,现记录相关代码: 测试: ...
分类:编程语言   时间:2017-07-25 21:22:46    阅读次数:221
Fedora安装一些开源字体 避免有些字体出现乱码
Fedoradnf -y install wqy-bitmap-fonts wqy-zenhei-fonts wqy-unibit-fonts wqy-microhei-fonts ...
分类:其他好文   时间:2017-07-25 21:15:49    阅读次数:153
Large Division (大数求余)
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!