1. 题目 给你一个整数数组 nums ,你可以对它进行一些操作。 每次操作中,选择任意一个 nums[i] ,删除它并获得 nums[i] 的点数。之后,你必须删除 所有 等于 nums[i] - 1 和 nums[i] + 1 的元素。 开始你拥有 0 个点数。返回你能通过这些操作获得的最大点数 ...
分类:
其他好文 时间:
2021-06-02 10:42:51
阅读次数:
0
MySQL 如何删除有外键约束的表数据 今天删除数据库中数据,提示因为设置了foreign key,无法修改删除可以通过设置FOREIGN_KEY_CHECKS变量来避免这种情况。 SET FOREIGN_KEY_CHECKS=0;删除,更新数据, 恢复外键 SET FOREIGN_KEY_CHEC ...
分类:
数据库 时间:
2021-05-25 18:40:26
阅读次数:
0
<template> <div class="hello"> <p v-show="isShow" style="color:red;font-size:25px;">{{str1}}</p> <p v-show="!isShow" style="color:green;font-size:25px ...
分类:
其他好文 时间:
2021-05-25 18:21:49
阅读次数:
0
一、总和 i = 1 sum = 0 while i <= 100: sum += i i += 1 print(sum) 二、奇数和 i = 1 sum = 0 while i <= 100: if i % 2 != 0: sum += i i += 1 print(sum) 三、偶数和 i = ...
分类:
编程语言 时间:
2021-05-25 18:19:09
阅读次数:
0
题目:https://codeforc.es/contest/1529 A. Eshag Loves Big Arrays 题意:略 题解:发现随便取两个不同的数,一定可以删掉大的那个数。所以最后留下的肯定是最小的所有数。 #include<iostream> #include<algorithm> ...
分类:
其他好文 时间:
2021-05-25 18:14:45
阅读次数:
0
异常 try { 被检查的语句 } catch(异常信息类型[变量名]) { 进行异常处理的语句 } #include <math.h> #include <iostream> using namespace std; double triangle(double a, double b, doub ...
分类:
其他好文 时间:
2021-05-25 18:14:25
阅读次数:
0
// html部分 <div class="fdj"> <div class="left"> <div class="zhezhao"></div> </div> <div class="right"></div> </div> // css部分 .fdj{ width:100vw; height: ...
分类:
其他好文 时间:
2021-05-25 17:55:05
阅读次数:
0
C语言 #include "stdbool.h" #define NULL ((void *)0) //Definition for a binary tree node. struct TreeNode { int val; struct TreeNode *left; struct TreeNo ...
分类:
编程语言 时间:
2021-05-25 17:51:01
阅读次数:
0
<dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.7</version> <!-- 作用域范围为test --> <scope>test</scope> </dependency> 将<sc ...
分类:
其他好文 时间:
2021-05-24 17:22:10
阅读次数:
0
public htmlToText(html: string) { return html .replace(/<br>/g, '') .replace(/<p>/g, '') .replace(/<\/p>/g, '') .replace(/<\s*b[^>]*>/g, '') .replace( ...
分类:
Web程序 时间:
2021-05-24 17:18:14
阅读次数:
0