1 class PeekingIterator: 2 def __init__(self, iterator): 3 self.iterator = iterator 4 self.head = iterator.next() 5 6 def peek(self): 7 return self.he ...
分类:
其他好文 时间:
2020-04-06 09:33:35
阅读次数:
59
题意: 求在长度为 $n$ 的数组中选择连续的元素,使其和是 $n$ 的倍数,输出元素个数和每个元素的值。 分析: 我们选取一段连续的元素。对原数组求前缀和,并且对 $n$ 取模,那么结果就会分布在 $[0,n)$ 之间。如果有一个前缀和取模 $n$ 的结果为 $0$,那么这个前缀和一定满足条件。否 ...
分类:
其他好文 时间:
2020-04-04 20:26:26
阅读次数:
70
无法定位软件包?????????????????????????????????????? ???? 1111111.在/etc/apt/sources.list 文件中更新配置源文件 修改 按i 添加 之后按esc 再输入: qw 保存退出 2222222.vmware出现无法定位Linux-he ...
分类:
其他好文 时间:
2020-04-04 15:04:06
阅读次数:
78
删除主题 在主题目录 中直接删除即可。 首页和文章页使用不同主题 首页使用sidebar,文章页不使用sidebar,这样文章的内容可以占更宽的页面 1. 安装插件 Multiple Themes,来为不同页面设置不同的主题。 2. 将主题复制为一个新的主题,并将目录中的名称全都替换为新的名称,这样 ...
分类:
其他好文 时间:
2020-04-04 14:26:27
阅读次数:
59
中文题目链接 Recently, Peter saw the equation x0+2x1+4x2+...+2mxm=nx0+2x1+4x2+...+2mxm=n. He wants to find a solution (x0,x1,x2,...,xm)(x0,x1,x2,...,xm) in ...
分类:
其他好文 时间:
2020-04-04 09:53:21
阅读次数:
51
作者:袁野 Date:2020-03-24 来源:物体的三维识别与6D位姿估计:PPF系列论文介绍(二)——PPF-MEAM 文章“Point Pair Feature-Based Pose Estimation with Multiple Edge Appearance Models (PPF-M ...
分类:
其他好文 时间:
2020-04-03 18:07:44
阅读次数:
145
题目: Recently, Peter saw the equation x0+2x1+4x2+...+2mxm=nx0+2x1+4x2+...+2mxm=n. He wants to find a solution (x0,x1,x2,...,xm)(x0,x1,x2,...,xm) in suc ...
分类:
其他好文 时间:
2020-04-02 11:55:22
阅读次数:
55
/******************************************************************* Copyright(c) 2016, Harry He All rights reserved. Distributed under the BSD licens ...
分类:
其他好文 时间:
2020-04-01 11:21:28
阅读次数:
66
Problem : Write a program that outputs the string representation of numbers from 1 to n. But for multiples of three it should output “Fizz” instead of ...
分类:
其他好文 时间:
2020-04-01 01:01:58
阅读次数:
55
1 /* 2 这道题用到了鸠巢原理又名容斥原理,我的参考链接:https://blog.csdn.net/guoyangfan_/article/details/102559097 3 4 题意: 5 这道题给你了n个数,让你找这n个数中有没有几个数的和是n的倍数 6 7 题解: 8 你循环遍历一遍 ...
分类:
其他好文 时间:
2020-03-31 14:19:18
阅读次数:
80