Fish eating fruit $$ Time Limit: 1000 ms \quad Memory Limit: 262144 kB $$ 题意 大体的题意就是给出一棵树,求每一对点之间的距离,然后把该距离存在距离 $\mod 3$ 的位置,输出总和。 思路 令两个 $dp$ 数组和两个辅助 ...
分类:
其他好文 时间:
2019-09-16 23:59:32
阅读次数:
259
通过什么样的办法检测flash是否被劫持? iis7网站监控 网站的劫持、污染、flash劫持可检测。 Flash劫持 当我们在挖src漏洞的时候,找到一个接口或者一个页面response内容,存在用户的token或者用户唯一标识的信息的时候,着要访问www..com/crossdomain.xml <cross-domain-policy> <allow-acces
分类:
其他好文 时间:
2019-09-16 16:31:27
阅读次数:
117
import psutil# cpu 详情# re = psutil.cpu_percent(interval=1) # 返回cpu使用百分比# re = psutil.cpu_count() # 返回CPU核数# 内存# re = psutil.virtual_memory() # 获取内存# s ...
分类:
其他好文 时间:
2019-09-16 13:43:40
阅读次数:
93
①英文题目 Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted ...
分类:
其他好文 时间:
2019-09-16 13:38:03
阅读次数:
78
C. Permute Digits time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You are given two posit ...
分类:
其他好文 时间:
2019-09-16 10:03:05
阅读次数:
109
其实工作这么久了一直都没搞清楚到底如何来处理异常,偶然看到一篇外文感觉还不错,便把它翻译了下来,原文链接位于本文末尾处。 在java中处理异常并不是一件简单的事,不止初学者觉得它难以理解甚至连有经验的开发者也会花费几个小时来讨论某个异常应该抛出还是处理掉。 这就是为何大多数开发团队都拥有自己的规范来 ...
分类:
其他好文 时间:
2019-09-16 09:54:07
阅读次数:
82
[TOC] 常用代码片段及技巧 自动选择GPU和CPU 切换当前目录 打印模型参数 将tensor的列表转换为tensor 内存不够 Smaller batch size every few minibatches debug tensor memory resource` module is a ...
分类:
编程语言 时间:
2019-09-16 09:41:37
阅读次数:
71
题目: Prime Path Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 35295 Accepted: 18998 Description The ministers of the cabinet were quite up ...
分类:
其他好文 时间:
2019-09-16 09:39:25
阅读次数:
128
突然发现一个很好的课程,里面有将DMA,非常好,花了69买下来了,DMA的链接如下:https://time.geekbang.org/column/article/118657 注意: 个人整理,有误无责。 0. CPU控制的数据传输方式介绍 由CPU控制的数据传输方式有两种:查询、中断。 0.1 ...
分类:
其他好文 时间:
2019-09-15 00:34:19
阅读次数:
213
//poj 1458 Common Subsequence Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 69884 Accepted: 29304 Description A subsequence of a given se... ...
分类:
其他好文 时间:
2019-09-14 00:37:28
阅读次数:
97