码迷,mamicode.com
首页 >  
搜索关键字:int    ( 143001个结果
汇编语言王爽 实验10-3 数值显示
1 assume cs:code 2 data segment 3 db 10 dup(0) 4 data ends 5 6 code segment 7 start: 8 mov ax,12666 9 mov bx,data 10 mov ds,bx 11 mov si,0 12 call dto... ...
分类:编程语言   时间:2017-05-29 10:01:47    阅读次数:263
[LeetCode] 598. Range Addition II
https://leetcode.com/problems/range-addition-ii 思路1: brute force - O(m * n * k), k = number of ops思路2: 从 ops 中找到被操作次数最多的 row 和 column,这可以通过遍历 ops 数组,分 ...
分类:其他好文   时间:2017-05-29 10:01:14    阅读次数:158
c语言库函数测试
1.函数名: abort功 能: 异常终止一个进程用 法: void abort(void);程序例: 结果:abort后面的代码不会执行,程序会从abort处终止,报异常 2.函数名: abs功 能: 求整数的绝对值用 法: int abs(int i);程序例: 结果:返回一个整数绝对值,参数必 ...
分类:编程语言   时间:2017-05-29 10:00:24    阅读次数:162
10.model/view实例(4)
任务:给表单的每一列添加列名。 思考: 1.只需要添加一个函数 headerData()。 横向方面添加列名 代码如下: ...
分类:其他好文   时间:2017-05-29 09:58:58    阅读次数:125
topcoder srm 689 div1 -3
1、给出一个$2*n$的矩阵,只包含小写字母。重新排列各个元素使得任意两个相邻的元素不相同? 思路:按照每种字符的数量降序排序,然后从多到少依次放每一种。放的时候一上一下交错放置。 ...
分类:其他好文   时间:2017-05-29 09:56:43    阅读次数:139
543. 二叉树的直径 Diameter of Binary Tree
/** * Definition for a binary tree node. * public class TreeNode { * public int val; * public TreeNode left; * public TreeNode right; * public TreeNod... ...
分类:其他好文   时间:2017-05-29 01:00:30    阅读次数:289
malloc 和free例程
#include <stdio.h>#include <stdlib.h>int main(){int a;scanf("%d",&a);int *p=(int *)malloc(a*4);//注意:因为malloc是byte的,所以这里要乘以4,不然free的时候程序就会奔溃,因为使用的空间大于申 ...
分类:其他好文   时间:2017-05-29 00:58:58    阅读次数:221
javase基础5
1.方法格式 修饰符 返回值类型 方法名(参数类型 参数名1,参数类型 参数名2…) { 函数体; return 返回值; } 修饰符: public static 等 返回值类型:用于限定返回值的数据类型 方法名:一个名字,为了方便我们调用方法 参数类型:用于接收调用方法时传入的数据的类型 参数名 ...
分类:编程语言   时间:2017-05-29 00:57:59    阅读次数:228
leetcode_permutaion
#include #include #include using namespace std; int main() { int a[3] = { 1,3,2}; vectornum(a, a + 3); auto rfirst = num.rbegin(); auto rend = num.ren... ...
分类:其他好文   时间:2017-05-29 00:29:41    阅读次数:143
memset
#include <cstring> #include <iostream> using namespace std; int main() { int a[2][2]; int n=2,m=2; for(int i=0;i<n;i++) for(int j=0;j<m;j++) { cin>>a[ ...
分类:其他好文   时间:2017-05-29 00:29:24    阅读次数:267
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!