A:把多余的步数删掉即可。 #include<bits/stdc++.h> using namespace std; typedef long long LL; typedef pair<int,int> pii; const int N = 1e4 + 5; const int M = 1e4 + ...
分类:
其他好文 时间:
2021-02-09 12:16:59
阅读次数:
0
在Java中,8种基本数据类型并不能表示所有的数字。 整数无法表示比byte最小取值还小的,比long最大取值还大的。 浮点数本身有精度, 这就注定有很多数字用基本类型没有办法表示。 BigInteger用来表示不可变的任意精度的整数。BigDecimal用来表示不可变的、任意精度的有符号十进制数。 ...
分类:
其他好文 时间:
2021-02-09 12:02:58
阅读次数:
0
A 一共n个人,去a餐厅的有a人,去b餐厅有b人,两个都去的有c人,求没有去的有多少,如果数据不合理或没去的人数少于1,输出-1 #include<bits/stdc++.h> using namespace std; #define ll long long int main() { int n, ...
分类:
其他好文 时间:
2021-02-09 11:44:03
阅读次数:
0
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef double db; ll a, b, c, d; void solve1() { if (a > 0) { puts("(-inf,inf)"); ...
分类:
其他好文 时间:
2021-02-08 12:05:36
阅读次数:
0
class Solution { public: int f[1005][1005]; int longestCommonSubsequence(string text1, string text2) { memset(f,0,sizeof(f)); int n=text1.size(); int ...
分类:
其他好文 时间:
2021-02-08 11:51:48
阅读次数:
0
public class Demo01 { public static void main(String[] args) { //八大基本数据类型 //整数 int num=10; //最常用的 byte num1=20; short num3=30; long num4=30L;//Long类型要 ...
分类:
其他好文 时间:
2021-02-08 11:43:03
阅读次数:
0
#include <bits/stdc++.h> typedef long long ll; ll dp[40][40][40],ans; int n,a[40][40]; char s[40]; ll dfs(int l,int r,int mid){ if (l==r) return 1; if ...
分类:
其他好文 时间:
2021-02-08 11:40:55
阅读次数:
0
UOJ87 mx的仙人掌 这里没有用传统的方点外接圆点的做法,而是方点虚树上儿子跳到方点所在环上单调队列处理,本质上是一样的. code //爽! #include<bits/stdc++.h> using namespace std; typedef long long ll; const int ...
分类:
其他好文 时间:
2021-02-06 12:15:50
阅读次数:
0
public class Demo02 { public static void main(String[] args) { //八大基本类型 //整数 int num1 = 10; //最常用 byte num2 = 20; short num3 = 30; long num4 = 30l; // ...
分类:
其他好文 时间:
2021-02-05 10:43:51
阅读次数:
0
单机启动 1、获取Kafka 2、解压Kafka $ tar -xzf kafka_2.13-2.7.0.tgz $ cd kafka_2.13-2.7.0 3、启动zk(Kafka包中自带zk程序和配置文件) 配置ZK的日志路径 # Start the ZooKeeper service # No ...
分类:
其他好文 时间:
2021-02-04 12:16:31
阅读次数:
0