Annex A: Transportation of APDU messages by T=0A.1 Case 1A.2 Case 2 ShortA.2S.1 Le acceptedA.2S.2 Le definitely acceptedA.2S.3 Le not accepted, La ind...
分类:
其他好文 时间:
2015-06-18 19:39:25
阅读次数:
126
感觉这个题好神啊。首先我们只管 $a = b$ 的情况,那么我们自然就可以把这个串对 $a$ 取模,然后用 KMP 求出能弄出几个其他的 B 串。具体就是把串先倍长,然后倒过来,然后求 $Next$ 数组,然后从 $2n$ 开始沿着 $Next[]$ 跳,直到跳到 $\le n$ 的时候停止,看哪些...
分类:
其他好文 时间:
2015-06-18 19:35:10
阅读次数:
178
本文目录 [-点此收起]字符集和编码字符集是什么?编码是什么?字符集和编码的关系字节序大端(Big-Endian | BE)小端(Little-Endian | LE)如何区分大端还是小端?字节序影响了什么?I/O方式利用字符缓冲在流中读写文件利用字节缓冲在FileChannel中读写文件利用字节缓...
分类:
编程语言 时间:
2015-06-18 14:57:15
阅读次数:
149
跟着机房的潮流学了点分治,发现这个东西其实还蛮好写的,学会思想,很容易YY出来。直接上习题。
POJ 1741 TREE
点分治的模板题,首先设点xx到当前子树跟rootroot的距离为gxg_x,则满足gx+gy≤kg_x+g_y \le k可以加进答案,但是注意如果x,yx,y在同一棵子树中,就要删去对答案的贡献,以为x,yx,y会在其所在的子树中在计算一次。注意无根树转有根树的过程,需要选...
分类:
其他好文 时间:
2015-06-17 21:40:08
阅读次数:
172
题目大意给定$m$,求$C_m^k (k \in [0,m])$中被$4$整除的数的个数。($m \le 10^3000$)取自$CGMO2012 P8$。关于 $4$显然,$4$可以分解成$2^2$,也就是说,如果一个数包含的4的方幂大于等于2,那么这个数就能被4整除。关于组合数对于一个组合数$C...
分类:
其他好文 时间:
2015-06-17 21:16:11
阅读次数:
122
Caffe代码导读(5):对数据集进行Testing上一篇介绍了如何准备数据集,做好准备之后我们先看怎样对训练好的模型进行Testing。先用手写体识别例子,MNIST是数据集(包括训练数据和测试数据),深度学习模型采用LeNet(具体介绍见http://yann.lecun.com/exdb/le...
分类:
其他好文 时间:
2015-06-16 18:24:52
阅读次数:
226
275
Description
给定A,B,X≤200A,B,X\le 200,让你求出有多少个YY满足X?i+Y?jX*i+Y*j可以表示所有的A?p+B?qA*p+B*q
Solution
首先如果XX是A和BA和B的约数的话,显然Y是无穷多个,否则我们可以暴力枚举YY,判断X和YX和Y的线性组合是否可以表示A和BA和B,如果可以的话答案+1。
Code#include <bits/s...
分类:
其他好文 时间:
2015-06-15 22:10:52
阅读次数:
127
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:
其他好文 时间:
2015-06-15 00:07:45
阅读次数:
142
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:
其他好文 时间:
2015-06-14 16:30:11
阅读次数:
79
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:
其他好文 时间:
2015-06-12 23:40:02
阅读次数:
121