题意:https://nanti.jisuanke.com/t/41355 给出N1,计算公式:A=F(N)Ni=Ni-1 ^ (A*A),F为类斐波那契需要矩阵快速幂的递推式。 求第k个N。 思路: 发现从大约1e5个数开始N交替出现,到一定位置%2即可。(or正解:https://blog.cs ...
分类:
其他好文 时间:
2019-09-09 19:04:54
阅读次数:
101
Long long ago, the sky and the earth were not separated, and the universe was chaotic. There was a giant named Pangu who slept for eighteen thousand y ...
分类:
其他好文 时间:
2019-09-08 22:13:07
阅读次数:
133
This is an era of team success, but also an era of heroes. Throughout the ages, there have been numerous examples of using the few to defeat the many. ...
分类:
其他好文 时间:
2019-09-08 21:54:02
阅读次数:
130
Java 的API(API: Application(应用) Programming(程序) Interface(接口)) Java API就是JDK中提供给我们使用的类,这些类将底层的代码实现封装了起来,我们不需要关心这些类是如何实现的,只需要学习这些类如何使用即可。 1.Object类 Obje ...
分类:
编程语言 时间:
2019-09-08 20:12:33
阅读次数:
93
什么是Spring Spring概述(了解) Spring是什么 Spring是JavaEE应用 full stack轻量级开源框架,核心是: 和`AOP(Aspect Oriented Programming:面向切面编程)`为内核,提供了展现层Spring MVC和持久层Spring JDBC以 ...
分类:
编程语言 时间:
2019-09-07 10:34:23
阅读次数:
95
Spring之AOP AOP 全程Aspect Oriented Programming,直译就是面向切面编程。和POP、OOP相似,它也是一种编程思想。OOP强调的是封装、继承、多态,也就是功能的模块化。而AOP则是OOP的补充,它强调的是切面,在运行时动态地将代码切入到类的指定方法、指定位置上的 ...
分类:
编程语言 时间:
2019-09-06 01:26:00
阅读次数:
84
t题目链接:https://nanti.jisuanke.com/t/41290 思路:题目意思很容易想到floyd,但是由于危险度的限制,我们该怎么跑floyd呢。 一开始理解错题目了,以为u->v包括终点起点都不能超过给的危险度,不过看样例,好像只需要中间的城市不能超过危险度。 我们可以这么想, ...
分类:
其他好文 时间:
2019-09-05 18:40:39
阅读次数:
94
10:52:37 Table 获取 tr list ...
分类:
其他好文 时间:
2019-09-03 11:52:44
阅读次数:
59
[C#]使用rx.net来帮助完成主动通知和订阅的功能 前言 rxjs已经算是在前端很红的一个主题了,不过相对来说rx.net则比较少看到有人讨论,其实rx提供了很多类似functional programming的概念,甚至还提供了类似event emit的想法,... ...