布尔类型: 我们已经知道布尔类型只有两个值True和False 布尔类型的操作: 比较运算、逻辑运算;操作结果都是布尔值。 比较运算符: 完成比较运算需要知道,比较运算符。(== 等于)(!= 不等于)(> 大于) (<小于)(<= 小于等于)(>= 大于等于) 示例: >>> 33.0==33 T ...
分类:
编程语言 时间:
2020-02-16 20:45:21
阅读次数:
96
1.题目描述 英文版: Given n non negative integers a1, a2, ..., an , where each represents a point at coordinate (i, ai). n vertical lines are drawn such that ...
分类:
其他好文 时间:
2020-02-16 20:34:34
阅读次数:
68
Given a non-empty array of integers, return the k most frequent elements. Example 1: Input: nums = [1,1,1,2,2,3], k = 2 Output: [1,2] Example 2: Input ...
分类:
其他好文 时间:
2020-02-16 01:07:50
阅读次数:
63
删除字符的镜像问题,状态转移方程一样~ #include<bits/stdc++.h> using namespace std; const int maxn=1014; const int mod=1e9+7; string s; long long dp[maxn][maxn]; int mai ...
分类:
其他好文 时间:
2020-02-14 22:16:51
阅读次数:
104
jdk 集合大家族之Map 前言: 之前章节复习了Collection接口相关,此次我们来一起回顾一下Map相关 。本文基于jdk1.8。 1. HashMap 1.1 概述 + HashMap相对于List的数据结构而言,它是键值对的集合。主要通过提供key值来取相对应的value的值。而不是通过 ...
分类:
其他好文 时间:
2020-02-13 19:07:48
阅读次数:
62
Access control is a fundamental element of the security infrastructure of any company. Every security officer wants to apply the principle of less pri ...
分类:
数据库 时间:
2020-02-12 16:37:04
阅读次数:
127
Petr has just bought a new car. He's just arrived at the most known Petersburg's petrol station to refuel it when he suddenly discovered that the petr ...
分类:
其他好文 时间:
2020-02-12 00:42:21
阅读次数:
53
题目链接 Dima loves representing an odd number as the sum of multiple primes, and Lisa loves it when there are at most three primes. Help them to represen ...
分类:
其他好文 时间:
2020-02-12 00:29:05
阅读次数:
85
Why: real-world data are typically noisy, enormous in volume, and may originate from a hodgepodge of heterogeneous sources. mean; median; mode(most co ...
分类:
其他好文 时间:
2020-02-11 09:33:39
阅读次数:
71
人生第一场 AtCoder,纪念一下 话说年后的 AtCoder 比赛怎么这么少啊(大雾 AtCoder Beginner Contest 154 题解 A Remaining Balls We have A balls with the string S written on each of th ...
分类:
其他好文 时间:
2020-02-09 22:16:59
阅读次数:
127