【题意简述】:中文题
【分析】:直接STL了,最好是自己写写实现过程!
// 160K 438Ms
#include
#include
#include
using namespace std;
int digital[1028];
int main()
{
int t,n,k;
scanf("%d",&t);
while(t--)
{
scanf("%d%d",&n,&k);...
分类:
其他好文 时间:
2014-11-05 14:49:45
阅读次数:
124
Problem Description The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit the...
分类:
其他好文 时间:
2014-11-03 22:07:53
阅读次数:
149
无非是digital IO与analog IODigital IODigitalOut- Configure and control a digital output pin.DigitalIn- Configure and control a digital input pin.DigitalIn...
分类:
其他好文 时间:
2014-11-01 06:12:41
阅读次数:
231
Android 数字签名
同一个开发者的多个程序尽可能使用同一个数字证书,这可以带来以下好处。
(1)有利于程序升级,当新版程序和旧版程序的数字证书相同时,Android系统才会认为这两个程序是同一个程序的不同版本。如果新版程序和旧版程序的数字证书不相同,则Android系统认为他们是不同的程序,并产生冲突,会要求新程序更改包名。
(2)有利于程序的模块化设计和开发。...
分类:
移动开发 时间:
2014-10-28 13:58:47
阅读次数:
223
Let's explore Go's built-in support for complex numbers via thecomplex64andcomplex128types. For cube roots, Newton's method amounts to repeating:Find ...
分类:
其他好文 时间:
2014-10-28 08:10:08
阅读次数:
184
求A,B,C ∈[1,N] && A*B != C,d(A*B) == d(C)的组数。
首先要知道d(x) = (x%9 == 0 ? 9 : x%9);
那么则会有A*B == C,则必有d(A*B) == d(C)。
若不考虑A*B != C,则答案既是ans[x]*ans[y]*ans[d(x*y)],ans[x]为d(i) == x的个数,显然x∈[1,9]。
当考虑A*B !=...
分类:
其他好文 时间:
2014-10-26 21:18:53
阅读次数:
161
关于量化压缩与量化补偿RGB Bayer Color分析彩色CCD/CMOS的格式和计算机中的读取格式
分类:
其他好文 时间:
2014-10-24 12:25:28
阅读次数:
137
1. 算法1.1 SRM钱少($30左右),而且很难。1.2 Tournament钱多($1000~$10000),太难~2. 设计和开发2.1 构件设计和开发钱比较多($1000左右),而且机会很多,王道啊!2.2 Digital Run分季度,前5名有很多钱($1000~$10000),而且可以...
分类:
其他好文 时间:
2014-10-21 19:33:03
阅读次数:
216
题意 求一个数的数根,即各位数之和,再之和,直到为个位数分析首先,要知道这样一个结论: 任何一个整数模9同余于它的各数位上数字之和 具体证明过程如下: 设自然数N=a[n]a[n-1]…a[0],其中a[0],a[1]、…、a[n]分别是个位、十位、…上的数字 再设M=a[0]+a[1...
分类:
其他好文 时间:
2014-10-21 00:56:25
阅读次数:
193