T1 T2 小R的箱子 T3 绯红之王 题目大意: 已知数列$a$,求$\sum\limits_{i=1}^n {a_i}^k$ 思路: 很久以前讲过的题,调了一年才搞出来 首先设$f_k=\sum\limits_{i=1}^n {a_i}^k$ , $g_k$表示对于所有$C_n^k$种选择的方法 ...
分类:
其他好文 时间:
2019-03-16 09:19:09
阅读次数:
184
通过Python语言详细解释并且示例了Google Authenticator的工作原理及其算法.
分类:
编程语言 时间:
2019-03-15 18:55:23
阅读次数:
313
15分的题写了半个小时。。。记录一下警示自己 isdigit里面应该是字符,zzl 看了一下百度首页的代码,感觉不如自己的简洁 #include<iostream> #include<cstdio> #include<string.h> #include<string> #include<math. ...
分类:
其他好文 时间:
2019-03-10 11:15:25
阅读次数:
271
inttohex from delphi help: Returns the hex representation of an integer. Unit SysUtils Category numeric formatting routines Delphi syntax: function In ...
环境MACOS系统版本:10.12.6dig工具版本:9.8.4问题:dig域名是没有cname记录,a记录条目缺少很多解决办法:/usr/bin/ruby-e"$(curl-fsSLhttps://raw.githubusercontent.com/Homebrew/install/master/install)"brewinstallbind
分类:
系统相关 时间:
2019-03-08 12:48:37
阅读次数:
215
我枯辽 开始这一段 打成了 然后导致一直爆炸 1 #include<bits/stdc++.h> 2 using namespace std; 3 const int N=100+5; 4 bool v[N]; 5 int len,n,a[N],sum,m; 6 template<class t>v ...
分类:
其他好文 时间:
2019-03-08 12:46:58
阅读次数:
174
$ \color{ 0066ff}{ 题目描述 }$ 「Hanabi, hanabi……」 一听说祭典上没有烟火,Karen 一脸沮丧。 「有的哦…… 虽然比不上大型烟花就是了。」 还好 Shinobu 早有准备,Alice、Ayaya、Karen、Shinobu、Yoko 五人又能继续愉快地玩耍啦 ...
分类:
编程语言 时间:
2019-03-05 15:40:49
阅读次数:
312
~~带花树,那是啥?~~ 每次复杂度 $O(nm)$ 随机5次似乎就卡不掉(起码现在uoj上没有能卡掉这个的 cpp include using namespace std; int read() { int x = 0, c = getchar(); while (!isdigit(c)) c = ...
分类:
其他好文 时间:
2019-03-04 20:37:09
阅读次数:
174
字符串的定义 字符串 就是 一串字符,是编程语言中表示文本的数据类型 在 Python 中可以使用 一对双引号 " 或者 一对单引号 ' 定义一个字符串 虽然可以使用 \" 或者 \' 做字符串的转义,但是在实际开发中: 如果字符串内部需要使用 ",可以使用 ' 定义字符串 如果字符串内部需要使用 ...
分类:
其他好文 时间:
2019-03-04 19:08:54
阅读次数:
166