https://www.acwing.com/problem/content/1133/ #include <bits/stdc++.h> using namespace std; #define IO ios::sync_with_stdio(false);cin.tie(0); cout.tie ...
分类:
其他好文 时间:
2021-02-15 11:53:38
阅读次数:
0
Problem Description Long time ago Alex created an interesting problem about parallelogram. The input data for this problem contained four integer poin ...
分类:
其他好文 时间:
2021-02-10 13:02:09
阅读次数:
0
前言:一般Java项目后端发送请求都使用http,最近项目里面大佬建议把http都改成okhttp3(OkHttpClient)。故今日记录部分常用发送方式。 代码:为了便于以后使用,这里封装一个OkHttpUtil的工具类 1、先导入jar包: <dependency> <groupId>com. ...
分类:
编程语言 时间:
2021-02-09 12:20:38
阅读次数:
0
Trees are fundamental in many branches of computer science (Pun definitely intended). Current stateof-the art parallel computers such as Thinking Mach ...
分类:
其他好文 时间:
2021-02-08 12:29:55
阅读次数:
0
1、什么是栈 栈也是一种线性结构, 相比数组,栈对应的操作是数组的子集 只能从一端添加元素,也只能从一端取出元素 这一端称为栈顶 栈是一种后进先出的数据结构。 2、栈的应用 1) 编辑器无处不在的Undo操作(撤销) 2) 程序调用的系统栈 函数A中调用函数B,函数B中调用函数C。 如果C函数执行完 ...
分类:
其他好文 时间:
2021-02-08 12:24:23
阅读次数:
0
一、概述 在项目,需要使用一个功能,点击某个按钮,展开/隐藏 某些说明文字。 二、项目演示 新建一个vue项目,安装ElementUI 模块即可。 新建test.vue <template> <div style="width: 70%;margin-left: 30px;margin-top: 3 ...
分类:
其他好文 时间:
2021-02-08 12:11:26
阅读次数:
0
class Solution { public: vector<vector<int>> threeSum(vector<int>& nums) { int n=nums.size(); vector<vector<int>>ans; if(n<3) return{}; sort(nums.begi ...
分类:
其他好文 时间:
2021-02-08 11:52:34
阅读次数:
0
栈的顺序存储 #define MaxSize 1000 typedef struct SNode *Stack; struct SNode { ElementType Data[MaxSize]; int Top; }; //入栈 void Push( Stack PtrS, ElementType ...
分类:
其他好文 时间:
2021-02-06 11:59:33
阅读次数:
0
__name__ 创建一个py文件,命名为 demo1.py,写下面一行代码 print(__name__) 执行 从当前文件下运行,__name__就是__main__ 在创建一个文件为demo2.py,导入demo1,运行demo2.py 从demo2.py 里导入 demo1,__name__ ...
分类:
编程语言 时间:
2021-02-05 10:54:32
阅读次数:
0
循环 1 #include<iostream> 2 3 using namespace std; 4 int main() 5 { 6 int my_array[] = { 1,2,3,4,5,6,7,8 }; 7 // 不会改变 my_array 数组中元素的值 8 // x 将使用 my_arr ...
分类:
编程语言 时间:
2021-02-04 11:44:06
阅读次数:
0