#include <stdio.h> #define COLS 10 #define ROWS 6 char erwei[6][10]={{1,2,3,4,5,6,7,8,9,10}, {10,9,8,7,6,5,4,3,2,1}, {1,2,3,4,5,6,7,8,9,10}, {10,9,8,7 ...
分类:
编程语言 时间:
2020-01-12 18:06:07
阅读次数:
65
Given an array A of integers and integer K, return the maximum S such that there exists i < j with A[i] + A[j] = S and S < K. If no i, j exist satisfy ...
分类:
其他好文 时间:
2020-01-12 11:53:41
阅读次数:
79
# -*- coding: utf-8 -*- import matplotlib.pyplot as plt import random as r p=0.495 p1=0.095 p2=0.745 a=3 b=2 s=0 a1=[0]*100 a2=[0]*100 a32=[0]*100 a22 ...
分类:
其他好文 时间:
2020-01-12 11:21:40
阅读次数:
77
题意: 给出一个边长为a的正方形,其左下角坐标为(0,0),右上角坐标为(a,a)。 此外,再给出一个边长为b的小正方形,以及它的左下角坐标(x,y),其右上角。 坐标为(x+b,y+b),并且保证小正方形一定在大正方形内(有可能会与大正方形的边重合,但不会超出大正方形)。 问是否存在一个在顶点都在 ...
分类:
其他好文 时间:
2020-01-11 11:40:48
阅读次数:
53
1.查看所有数据库容量大小selecttable_schemaas‘数据库‘,sum(table_rows)as‘记录数‘,sum(truncate(data_length/1024/1024,2))as‘数据容量(MB)‘,sum(truncate(index_length/1024/1024,2))as‘索引容量(MB)‘frominformation_schema.tablesgroupby
分类:
数据库 时间:
2020-01-11 09:22:14
阅读次数:
315
21. 合并两个有序链表 https://leetcode cn.com/problems/merge two sorted lists/ | 难度 | 完成日期 | 耗时 | 提交次数 | | | | | | | 简单 | 2020 1 10 | 0.5 小时 | 1 | 问题描述 将两个有序链表 ...
分类:
其他好文 时间:
2020-01-10 23:48:52
阅读次数:
92
废话不多说,直接上代码(工具类): public static Object[] combineArray(Object one[], Object two[]) throws BussinessException { Object res[] = null; if(one != null && o ...
分类:
编程语言 时间:
2020-01-10 20:13:42
阅读次数:
104
非coding shortcuts Ctrl+\ to split the active editor into two. in the Quick Open (Ctrl+P) file list. 快速打开最近所用的文件。 side by side 肩并肩,同一排 安装Ctrl 选择多个文件,然后 ...
分类:
其他好文 时间:
2020-01-08 00:41:28
阅读次数:
92
交叉冲印滤镜又叫做正片负冲滤镜,关于它的原理我一直没找到,希望有大佬给我甩个链接。 我用的测试图像在这里 我实现的交叉冲印是使用上图这样的点运算来实现的,下面是我的代码 void punchFilter(Mat src) { int width = src.rows; int height = sr ...
分类:
编程语言 时间:
2020-01-07 22:52:27
阅读次数:
94
An undirected graph is a graph where the pairings representing the edges are _____________. Unordered无序 Two vertices in a graph are ___________ if the ...
分类:
其他好文 时间:
2020-01-07 00:54:31
阅读次数:
61