title: NEU_Train_Camp_2020_搜索和简单图论 date: 2020-07-05 22:38:11 tags: c++ categories: New cover: 搜索和简单图论 A - Knight Moves HDU 1372 每组数据输入两个坐标,(a-h)代表列,(1 ...
分类:
其他好文 时间:
2020-07-24 09:31:39
阅读次数:
102
短信接口频率限制 # throttlings.py from rest_framework.throttling import SimpleRateThrottle class SMSThrottling(SimpleRateThrottle): scope = 'sms' def get_cach ...
分类:
其他好文 时间:
2020-07-23 23:20:56
阅读次数:
75
赛后3min 1A...自闭_(:з」∠)_ 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6770 题目大意:维护一个由函数\(f_i(x)=(x-a_i)^4+b_i\)组成的集合,要求实现插入、删除、以及查询\(x\):求\(f_i(x)\)的最 ...
分类:
其他好文 时间:
2020-07-23 23:09:00
阅读次数:
92
详细介绍super https://www.runoob.com/python/python-func-super.html 总结 多继承的时候,继承顺序: super:广度优先 直接使用父类名调用:深度优先,(还会导致重复调用祖宗的方法) ...
分类:
编程语言 时间:
2020-07-23 22:49:37
阅读次数:
72
$Fibonacci$数列的通项公式: \(F_n=\frac{1}{\sqrt5}\bigg[(\frac{1+\sqrt5}{2})^n-(\frac{1-\sqrt5}{2})^n\bigg]\) 令: \(a=\frac{1+\sqrt5}{2}\) \(b=\frac{1-\sqrt5}{ ...
分类:
其他好文 时间:
2020-07-23 15:43:22
阅读次数:
80
springboot集成redis序列化的问题 在springboot中RedisTemplate默认使用的是Java本地的序列化(JdkSerializationRedisSerializer)方式 public void afterPropertiesSet() { super.afterPro ...
分类:
编程语言 时间:
2020-07-22 20:56:29
阅读次数:
85
$6755\ Fibonacci\ Sum$ 题意 给定 \(C,\ N,\ K\) 规定 \(F_{0} = 0,\ F_{1} = 1,\ F_{n} = F_{n - 1} + F_{n - 2}\) 计算 \[ F_{0}^k + F_{C}^k + F_{2C}^k + ... + F_{ ...
分类:
其他好文 时间:
2020-07-22 20:42:13
阅读次数:
107
原文来自知乎,现摘录与此 https://zhuanlan.zhihu.com/p/67964081 首先这是一段mnist数据集的基本代码。 class Net(nn.Module): def __init__(self): super(Net, self).__init__() self.con ...
分类:
其他好文 时间:
2020-07-22 16:23:29
阅读次数:
105
##题面 Problem Description 任何一个大学生对菲波那契数列(Fibonacci numbers)应该都不会陌生,它是这样定义的: F(1)=1; F(2)=2; F(n)=F(n-1)+F(n-2)(n>=3); 所以,1,2,3,5,8,13……就是菲波那契数列。 在HDOJ上 ...
分类:
其他好文 时间:
2020-07-22 15:43:22
阅读次数:
61