"A. Candies and Two Sisters" 签到题,直接输出即可 代码 include define INF 0x3f3f3f3f typedef long long ll; using namespace std; inline void read(int &p) { p=0;int ...
分类:
其他好文 时间:
2020-04-15 00:35:19
阅读次数:
73
简介 Poller class 是IO multiplexing的封装。在muduo中它是一个抽象类,因为muduo同时支持poll和epoll两种IO multiplexing机制。Poller是EventLoop的间接成员,只供其owner EventLoop在IO线程中调用,因此无需加锁。其生 ...
分类:
其他好文 时间:
2020-04-14 22:54:29
阅读次数:
63
什么是Here Document Here Document 是在Linux Shell 中的一种特殊的重定向方式,它的基本的形式如下 cmd << delimiter Here Document Content delimiter 它的作用就是将两个 delimiter 之间的内容(Here Do ...
分类:
系统相关 时间:
2020-04-14 22:23:46
阅读次数:
88
Problem Description Give you two numbers A and B, if A is equal to B, you should print "YES", or print "NO". Input each test case contains two numbers ...
分类:
其他好文 时间:
2020-04-14 20:21:08
阅读次数:
70
题意: 给出n个蚂蚁和苹果的坐标,对每个蚂蚁和苹果进行匹配(之间连一条线段),要求:任意两条线段不相交,输出一种方案。 思路: 因为三角形的两边之和大于第三边, 所有他们连线的所有线段和最小的时候线段一定不会相交, 所以这道题目就变成了二分图最小权值匹配,把任意两点间权值即为他们的距离,跑一遍KM即 ...
分类:
其他好文 时间:
2020-04-14 14:06:05
阅读次数:
62
错误信息: ERROR 2019-09-05 10:29:05,700 NetUtil.py:96 - EOF occurred in violation of protocol (_ssl.c:579)ERROR 2019-09-05 10:29:05,700 NetUtil.py:97 - SS ...
分类:
其他好文 时间:
2020-04-14 11:04:38
阅读次数:
116
之前一直使用json转换map对象,因为公司统一使用gson,我按照网上转换map对象的方式转换: Map<String, Object> params = gson.fromJson(gson.toJson(payMentResultDto), Map.class); 结果对象里Integer类型 ...
分类:
其他好文 时间:
2020-04-14 10:33:39
阅读次数:
216
Vasya And Array 题意: 给你一个序列,再给你一些区间 t = 1时说明这些区间时非递减的 t = 0 时说明这些区间至少有一对数字 arr[i] > arr[i - 1] 思路: 只要左边的区间必然右边的区间大就好了 , 非递减区间中的数字都赋值为一样的数字 因为n只有1000 , ...
分类:
其他好文 时间:
2020-04-13 23:04:18
阅读次数:
71
#!/bin/sh./etc/rc.d/init.d/functionsexportLANG=zh_CN.UTF-8#一级菜单menu1(){clearcat<<EOF----------------------------------------|****欢迎使用cetnos6.5优化脚本****----------------------------------------1.一键
分类:
其他好文 时间:
2020-04-13 15:29:24
阅读次数:
80
#!/bin/sh./etc/rc.d/init.d/functionsexportLANG=zh_CN.UTF-8#一级菜单menu1(){clearcat<<EOF----------------------------------------|****欢迎使用cetnos7.5优化脚本****----------------------------------------1.一键
分类:
其他好文 时间:
2020-04-13 15:23:32
阅读次数:
71