#include <stdio.h> #include <stdlib.h> #include <string.h> #include <pthread.h> #include <time.h> #include <unistd.h> typedef struct score_s{ char nam ...
分类:
编程语言 时间:
2020-03-17 08:13:17
阅读次数:
68
题目链接:https://vjudge.net/contest/362170#problem/B 题目大意: 给定数列S的首两项,要求之后的各项满足S[i] = |S[i-1] - S[i-2]|(前两项差值的绝对值)。问整个数列S中不同的数字个数。 想法: 首先容易发现,当i足够大时,最后一定会出 ...
分类:
其他好文 时间:
2020-03-17 08:12:32
阅读次数:
56
数据格式: data=[ {"cat_id":3,"name":"青浦","parent_id":1}, {"cat_id": 2, "name": "张江", "parent_id": 4}, {"cat_id":4,"name":"浦东","parent_id":1}, {"cat_id":5, ...
分类:
其他好文 时间:
2020-03-16 23:59:18
阅读次数:
115
SyncWaterfallHook表示如果上一个回调函数的结果不为undefined,则可以作为下一个回调函数的第一个参数 回调函数接受的参数来自于上一个函数的结果 调用call传入的第一个参数,会被上一个函数的非undefined结果替换 当回调函数返回非undefined不会停止回调栈的调用 使 ...
分类:
Web程序 时间:
2020-03-16 23:18:25
阅读次数:
80
最近的工作中,有块业务要求只选择月份和日期,翻遍了easyUI的API和网络资料也没找到方法,网上几乎都是只要年份或者年月,没有我需要的场景。遂自己琢磨了下,最终成功只选择月份和日期,过滤掉了年份。 我想要的是这样的↓ 我修改后的效果是这样的↓ 现分享代码如下: 1 $("#"+param).dat ...
分类:
其他好文 时间:
2020-03-16 21:48:58
阅读次数:
40
题目链接:http://icpc.njust.edu.cn/Problem/Hdu/1728/ 关于广度优先搜索的第一篇题解。广度优先搜索,就是状态树的层次遍历,一层一层的搜索,直到搜索到目标状态为止。在扩展的过程中设定一种由上一层扩展到下一层的转化机制,将出现的新的状态放入队列之中,每次取出队首元 ...
分类:
其他好文 时间:
2020-03-16 21:48:42
阅读次数:
75
跟着视频写的一个小Demo 目录结构: MyWriter.class package com.practice.itemwriter; import org.springframework.batch.item.ItemWriter; import org.springframework.stere ...
分类:
编程语言 时间:
2020-03-16 21:47:38
阅读次数:
57
栈: 1.First In Last Out(FILO) 2.先进后出,后进先出(桶/弹夹等) python实现栈: class Stack(object): def __init__(self): self.stack = [] def pop(self): if self.is_empty(): ...
分类:
其他好文 时间:
2020-03-16 19:16:02
阅读次数:
59
application.yml server: port: 8090 servlet: context-path: /springboot HelloController package com.komiles.study.controller; import org.springframework ...
分类:
编程语言 时间:
2020-03-16 19:02:43
阅读次数:
62
为什么需要基准测试? 如果你的代码中有性能问题,或者你怀疑某段代码有性能问题(当然最好得明确排除I/O性能问题),可以用基准测试生成CPU分析报告。 基准测试前的准备 生成以_test后缀的go文件(例:xxx_test.go)后,编写基准测试用例,以Benchmark开头的。以测试冒泡排序为例,代 ...
分类:
其他好文 时间:
2020-03-16 15:07:43
阅读次数:
92