int countLargestGroup(int n){ int hash[37]={0}; int map[10001]={0}; int i, sum, tmp, max=0, cnt=0; for(i=1; i<=n; i++){ map[i]=map[i/10]+i%10; hash[ma ...
分类:
其他好文 时间:
2020-12-01 12:05:58
阅读次数:
4
{ "size": 0, "query": { "bool": { "filter": [ { "range": { "@timestamp": { "gte": 1596572166943, "lte": 1596593766943, "format": "epoch_millis" } } }, ...
分类:
其他好文 时间:
2020-12-01 12:04:43
阅读次数:
3
/** * index.js: webpack入口起点文件 * * 1.运行指令: * 开发环境:webpack ./src/index.js -o ./build --mode=development * webpack会以 ./src/index.js 为入口文件开始打包,打包后输出到 ./bu ...
分类:
Web程序 时间:
2020-12-01 11:52:51
阅读次数:
12
L2-1 功夫传人 (25分) 假算法过题 #include<iostream> #include<cstdio> #include<vector> #include<algorithm> #include<cstring> #include<string> #include<map> #inclu ...
分类:
其他好文 时间:
2020-12-01 11:50:35
阅读次数:
3
1、CSS的3种导入方式 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <!--内部样式--> <style> h1{ color: green; } </style> <!-- ...
分类:
编程语言 时间:
2020-11-30 16:15:02
阅读次数:
11
题目 Petya has equal wooden bars of length n. He wants to make a frame for two equal doors. Each frame has two vertical (left and right) sides of length ...
分类:
其他好文 时间:
2020-11-30 16:00:25
阅读次数:
6
官方文档:https://www.django-rest-framework.org/tutorial/1-serialization/ 序列化 1.安装第三方包并注册到app pip install djangorestframework 注册app: INSTALLED_APPS = [ ... ...
分类:
其他好文 时间:
2020-11-30 15:22:24
阅读次数:
2
int countGoodTriplets(int* arr, int arrSize, int a, int b, int c){ int i, j, k, cnt=0; for(i=0; i<arrSize-2; i++){ for(j=i+1; j<arrSize-1; j++){ if(ab ...
分类:
其他好文 时间:
2020-11-27 11:50:07
阅读次数:
24
css中,在.swiper-pagination-bullet-active{}中修改就ok。 默认样式为: .swiper-pagination-bullet-active { background-color: #e8561a; width: 20px; border-radius: 20px; ...
分类:
其他好文 时间:
2020-11-27 11:33:41
阅读次数:
7
判断json对象时JSONArray还是JSONObject 使用的fastjson Object object = js.get("guid"); if (object instanceof JSONArray) { System.out.println("JSONArray"); }else{ ...
分类:
Web程序 时间:
2020-11-27 11:30:51
阅读次数:
13