题意 小明从一岸游泳到另一岸,每片区域有水深,一旦水深超过L,小明就会淹死 同时每段时刻有海浪和退潮 搜索一下 然后记忆化一下 老了,搜索写半天 #include<bits/stdc++.h> using namespace std; /*int main() { // freopen("data2 ...
分类:
其他好文 时间:
2020-07-27 23:58:02
阅读次数:
127
1 /** 2 * @author liuwenlong 3 * @create 2020-07-24 15:00:39 4 */ 5 @SuppressWarnings("all") 6 public class TestRunTime { 7 public static String exeCm ...
分类:
其他好文 时间:
2020-07-27 23:57:30
阅读次数:
158
用伪代码表示第4题中各题的算法 有两个瓶子A和B,分别盛放醋和酱油,要求将他们互换(即A瓶原来盛醋,现在盛酱油,B瓶则相反)。 begin 醋 => A 酱油 => B A => C B => A C => B end 依次将10个数输入,要求输出其中最大的数。 begin 1 => i 0 => ...
分类:
编程语言 时间:
2020-07-27 23:49:58
阅读次数:
133
<body> <div id="box"> </body> <script type="text/javascript"> class A { constructor() { this.box = document.getElementById("box"); //获取父节点 this.img = ...
分类:
其他好文 时间:
2020-07-27 23:33:37
阅读次数:
97
大顶堆和小顶堆 相关介绍可参看:北京大学空地学院数据结构与算法 第六章 6.8.2.2 小节 代码实现如下 class Heap: """二叉堆的实现 小顶堆""" def __init__(self): self.heapList = [0] # 默认一个 0 做占位,使得根节点的索引在 1 上 ...
分类:
编程语言 时间:
2020-07-27 23:32:44
阅读次数:
75
SELECT total_cpu_time,[total_physical_Reads], total_execution_count, number_of_statements, s2.text --(SELECT SUBSTRING(s2.text, statement_start_offset ...
分类:
数据库 时间:
2020-07-27 15:37:19
阅读次数:
122
# -*- coding: utf-8 -*- # @Time : 2020/7/25 14:09 # @Author : Breeze # @FileName: 字符格式化输出.py name = input("Name:") age = int(input("Age:")) job = inpu ...
分类:
其他好文 时间:
2020-07-27 15:34:29
阅读次数:
60
本体考察数组的使用。注意本体使用vector的指针形式。 C++版 #include <iostream> #include <vector> #include <algorithm> using namespace std; void printMatrixInCircle(vector<vect ...
分类:
其他好文 时间:
2020-07-27 13:53:20
阅读次数:
79
安装kafka之前确保安装环境已经安装好jdk以及zk,并启动,以上有详细步骤,这里不再重复. zk安装地址https://blog.csdn.net/LXYuuuuu/article/details/107605769 上传相应kafka安装包到/export/software/ tar -zxv ...
分类:
其他好文 时间:
2020-07-27 13:52:32
阅读次数:
95
html:<a v-on:mouseover="changeActive($event)" v-on:mouseout="removeActive($event)" @click="backTOP" style="width: 39px;height: 39px;position: fixed;bo ...
分类:
其他好文 时间:
2020-07-27 13:49:30
阅读次数:
79