static int __init hello_init(void) { printk(KERN_EMERG "[ KERN_EMERG ] Hello Module Init\n"); printk( "[ default ] Hello Module Init\n"); return 0; } ...
分类:
其他好文 时间:
2021-01-18 11:37:08
阅读次数:
0
题目链接:https://leetcode-cn.com/problems/longest-increasing-subsequence 题目描述: 给你一个整数数组 nums ,找到其中最长严格递增子序列的长度。 子序列是由数组派生而来的序列,删除(或不删除)数组中的元素而不改变其余元素的顺序。例 ...
分类:
其他好文 时间:
2021-01-18 11:27:57
阅读次数:
0
#include<stdio.h> int main() { int n, m; while (scanf("%d%d", &n, &m) ==2) //(scanf("%d%d",&n,&m)!=EOF); { printf("m+n=%d\n", m + n); } return 0; ...
分类:
编程语言 时间:
2021-01-18 11:23:41
阅读次数:
0
import java.util.*; public class Solution { /** * * @param n int整型 总台阶数量 * @return int整型 */ //有 n 个台阶,你一次能走 1 个或者 2 个台阶,那么请问,走完这 n 个台阶共有几种方式? //备忘录模式 ...
分类:
编程语言 时间:
2021-01-18 11:22:40
阅读次数:
0
8.3.1.返回简单值 #接受名和姓并返回整洁的姓名 def get_formatted_name(first_name,last_name): """返回整洁的姓名""" full_name=first_name+' '+last_name return full_name.title() mus ...
分类:
其他好文 时间:
2021-01-18 11:21:56
阅读次数:
0
地址 https://vjudge.net/problem/POJ-3050 The cows play the child's game of hopscotch in a non-traditional way. Instead of a linear set of numbered boxes ...
分类:
其他好文 时间:
2021-01-18 11:21:11
阅读次数:
0
// 创建request对象function createXMLHttpRequest() { try { return new XMLHttpRequest();//大多数浏览器 } catch (e) { try { return ActvieXObject("Msxml2.XMLHTTP"); ...
分类:
Web程序 时间:
2021-01-18 11:02:14
阅读次数:
0
题目 题目链接:https://codeforces.com/problemset/problem/757/F 给定一个 \(n\) 个点,\(m\) 条边的带权无向图,和起点 \(s\)。 选择一个点 \(u\)(\(u \neq S\)),使在图中删掉点 \(u\) 后,有尽可能多的点到 \(s ...
分类:
其他好文 时间:
2021-01-18 10:37:30
阅读次数:
0
public class test11 { public static void main(String[] args) { int [][]grid={{1,0,0,0},{1,1,0,0}}; int [][]hits={{1,1},{1,0}}; int []result=hitBricks( ...
分类:
其他好文 时间:
2021-01-18 10:36:45
阅读次数:
0
1.new运算符和new[]运算符 new运算符会根据所给类型动态分配内存(在堆中),然后返回首地址 A.动态分配基本类型和基本类型的数组 //基本类型 //仅分配空间,不初始化 typeName * pointer = new typeName; //例: int * pint = new int ...
分类:
编程语言 时间:
2021-01-16 12:06:12
阅读次数:
0