1. 2. 3.Java类里面属性可以付初使值 4.属性的名字一小写开头 5 6.构造方法 1.语法: 7.staitc的应用 1.statia可以用来修饰:方法,属性,代码块 , static只能修饰成员变量和成员方法。 static变量是专属于类的,不能在方法定义里面使用。 2. 注意:代码块作 ...
分类:
编程语言 时间:
2021-01-21 10:46:33
阅读次数:
0
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www. ...
分类:
其他好文 时间:
2021-01-20 12:15:17
阅读次数:
0
题目: Monocarp had a sequence a consisting of n+m integers a1,a2,…,an+m. He painted the elements into two colors, red and blue; n elements were painted ...
分类:
其他好文 时间:
2021-01-20 12:13:42
阅读次数:
0
D. Divide and Summarize 题意 给你n个数,q次询问,问你能否具有满足和为s的序列。 思路 再求其有多少种和时需要使用$mid = max + min >> 1$来寻找有多少种和。 然后dfs,但是需要判断一下左面或者右面全部相等情况,否则会爆栈 #include<bits/s ...
分类:
其他好文 时间:
2021-01-19 12:24:43
阅读次数:
0
"tabBar": { "color": "#999", "selectedColor": "#ff2d4a", "backgroundColor": "#fafafa", "list": [ { "pagePath": "pages/index/index", "text": "首页", ...
分类:
其他好文 时间:
2021-01-19 12:19:23
阅读次数:
0
写在前边 链接:Codeforces Round #693 (Div. 3) 没有打,闲的没事补一下题。 A. Cards for Friends 链接:A题链接 题目大意: 给定一张$w*h$的卡片,每次可以切成$\cfrac{2} * h$或者$\cfrac{2} * w$的两张卡片,给定一个整 ...
分类:
其他好文 时间:
2021-01-19 12:15:09
阅读次数:
0
1、numpy库 import numpy as np np.random.seed(1) #设置随机种子 np.log(x) #给list中的每个元素取对数 np.multiply(x, y) #list中对应元素相乘 np.dot(x, y) #矩阵乘法 np.power(x, 2) #list ...
分类:
编程语言 时间:
2021-01-19 12:02:12
阅读次数:
0
https://codeforces.ml/contest/1465/problem/D 参考:https://www.cnblogs.com/JDFZ-ZZ/p/14171488.html & https://blog.csdn.net/weixin_43918473/article/detail ...
分类:
其他好文 时间:
2021-01-19 12:01:51
阅读次数:
0
list转字符串lst= ['a','b','c']"_".join(red_ball) 用前面的字符将序列元素连接成字符串。注意:序列中的元素必须是str!!!如果list元素是整型,需要先转成str。 >>>a_b_cl1= [1,2,3,4,5,6]l1= [str(i) for i in l ...
分类:
编程语言 时间:
2021-01-19 11:57:21
阅读次数:
0
最短路变形:用一条最小边替换一条最大边意义下的最短路 分层图,dis[i][0/1][0/1]表示点i,是否经过最小边,是否经过最大边 最小边两倍贡献,最大边0贡献 /* * Author : GhostCai * Expecto Patronum */ #include<bits/stdc++.h ...
分类:
其他好文 时间:
2021-01-19 11:43:34
阅读次数:
0