-
Xuanxuan has n sticks of different length. One day, she puts all her
sticks in a line, represented by S1, S2, S3, ...Sn. After measuring the
length of each stick Sk (1
Now given the length of S1, S2, S3, …Sn, you are required to find the
maximum value j - i.输入描述
The input contains multiple test cases. Each case contains two lines.
Line 1: a single integer n (n Line 2: n different positive integers (not
larger than 100000), indicating the length of each stick in order.输出描述
Output the maximum v ...
阅读题目
问答题
经典指数
-
-
已知一个n元高次方程:
其中:x1, x2,...,xn是未知数,k1,k2,...,kn是系数,p1,p2,...pn是指数。且方程中的所有数均为整数。
假设未知数1 1
方程的整数解的个数小于231
。
★本题中,指数Pi(i=1,2,...,n)均为正整数。
输入描述
第1行包含一个整数n。第2行包含一个整数M。第3行到第n+2行,每行包含两个整数,分别表示ki和pi。两个整数之间用一个空格隔开。第3行的数据对应i=1,第n+2行的数据对应i=n。输出描述
仅一行,包含一个整数,表示方程的整数解的个数。输入例子
3
150
1 2
-1 2
1 2
输出例子
178 ...
阅读题目
问答题
经典指数
-
-
-
-
-
-
-