1 #include<iostream> 2 #include<string> 3 #include<vector> 4 #include<algorithm> 5 using namespace std; 6 7 void test01() 8 { 9 vector<int> v; 10 for( ...
分类:
编程语言 时间:
2021-04-19 15:55:39
阅读次数:
0
问题: 给定二维数组, 求其中子矩形中元素和不大于K 的最大和。 Example 1: Input: matrix = [[1,0,1],[0,-2,3]], k = 2 Output: 2 Explanation: Because the sum of the blue rectangle [[0 ...
分类:
其他好文 时间:
2021-04-19 15:55:02
阅读次数:
0
string 容器 常见用法 string s1 = "Hello" string s2("Hello") string s3(s2) string s4 = s3 getline(cin,s)// 从cin中读取一行给s s.empty()// 空?true:false; s.size()//返回 ...
分类:
其他好文 时间:
2021-04-19 15:53:19
阅读次数:
0
画个爱心向你表白 直接运用爱心的表达式 expression = ((x*0.05)**2+(y*0.1)**2-1)**3-(x*0.05)**2*(y*0.1)**3 知识点 input()方法:用来和用户交互,输入 input('Enter an English word:') str.spl ...
分类:
其他好文 时间:
2021-04-19 15:24:33
阅读次数:
0
方法如下: public string Base64StringToFile(string base64String, string fileName) { //文件后缀 string suffix = ""; try { //文件保存路径 string fileFullPath = @"C:\Us ...
官方定义 接口隔离原则(Interface Segregation Principle),又称ISP原则 1、 客户端不应该依赖它不需要的接口 2、 类间的依赖关系应该建立在最小的接口上 基本介绍 通俗的来讲,不要在一个接口中定义多个方法,接口应该尽量细化 package jiekogeli; pu ...
分类:
其他好文 时间:
2021-04-19 14:48:17
阅读次数:
0
##思路 最长上升子序列的变形+记录路径 ##AC代码 #include<iostream> #include<cmath> #include<string.h> #include<algorithm> #include<stdio.h> #include<iomanip> #define inf ...
分类:
其他好文 时间:
2021-04-19 14:43:51
阅读次数:
0
C#中对xml数据的读取和写入: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml.Linq; using System.Xml; using ...
public class MyInfo { public string Name { get; set; } public double Diff { get; set; } public string File { get; set; } } static void Main(string[] a ...
当我们程序遇到异常时,会导致程序中止运行,见如下例子: def test(): a = int(input("please input:")) b = int(input("please input:")) result = a / b print(result) def test_1(): pri ...
分类:
编程语言 时间:
2021-04-19 14:38:29
阅读次数:
0