摘要:
time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Andrewid the Android is a galaxy-fam... 阅读全文
posted @ 2017-10-04 18:45
AWCXV
阅读(133)
评论(0)
推荐(0)
摘要:
time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Andrewid the Android is a galaxy-fam... 阅读全文
posted @ 2017-10-04 18:45
AWCXV
阅读(302)
评论(0)
推荐(0)
摘要:
time limit per test3 seconds memory limit per test256 megabytes inputstandard input outputstandard output Rikhail Mubinchik believes that the ... 阅读全文
posted @ 2017-10-04 18:45
AWCXV
阅读(139)
评论(0)
推荐(0)
摘要:
time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output After Vitaly was expelled from the un... 阅读全文
posted @ 2017-10-04 18:45
AWCXV
阅读(318)
评论(0)
推荐(0)
摘要:
【题目链接】:【题解】 错排公式 f[n] = (n-1)*(f[n-1]+f[n-2]); 这样理解; 要从n-1和n-2递推到n; 假设第n个位置上的数要放在前n-1个位置中的k位置;则有n-1种选择; 则对于第k个位置上原本的元素; 有两种情况; ① k那个元素到第n个位置上... 阅读全文
posted @ 2017-10-04 18:45
AWCXV
阅读(156)
评论(0)
推荐(0)
摘要:
一元 n 次多项式可用如下的表达式表示: 其中,aixi 称为i次项,ai称为i次项的系数。给出一个一元多项式各项的次数和系数,请按照如下规定的格式要求输出该多项式:多项式中自变量为x,从左到右按照次数递减顺序给出多项式。 多项式中只包含系数不为0 的项。如果多项式n 次项系数为正... 阅读全文
posted @ 2017-10-04 18:45
AWCXV
阅读(155)
评论(0)
推荐(0)
摘要:
Time Limit: 1 second Memory Limit: 128 MB【问题描述】假设phi(W)得到是按照以下算法编码后的结果: 1、 如果W的长度为1那么phi(W)即为W; 2、 假设需要编码的单词W = w1w2…w,并且K = N / 2(取下整); 3、 ... 阅读全文
posted @ 2017-10-04 18:45
AWCXV
阅读(228)
评论(0)
推荐(0)
摘要:
Time Limit: 1 second Memory Limit: 128 MB【问题描述】求所有可以只用1和00拼成的长度为N的二进制数的个数除以15746的余数。 比如当N=4的时候,有5个可能的二进制数:0011,0000,1001,1100,1111。 【数据范围】 1≤... 阅读全文
posted @ 2017-10-04 18:45
AWCXV
阅读(335)
评论(0)
推荐(0)
摘要:
Time Limit: 1s Memory Limit: 32MB 问题描述 Given a sequence 1,2,3,…,N, your job is to calculate the number of sub... 阅读全文
posted @ 2017-10-04 18:45
AWCXV
阅读(138)
评论(0)
推荐(0)
摘要:
Time Limit: 3s Memory Limit: 64MB 问题描述 Ljr has several lines. The lines are covered on the X axis. Let A ... 阅读全文
posted @ 2017-10-04 18:45
AWCXV
阅读(345)
评论(0)
推荐(0)

浙公网安备 33010602011771号