F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

��ϰʱ��

Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 18613    Accepted Submission(s): 13198


Problem Description
Ϊ���ܹ������꣬xhd��ʼ��ϰ�ˣ�����ÿ�����ϱ������������ܡ�xhd��ϰ�и�ϰ�ߣ��ڸ�ϰ��һ�ſκ���������һ�Ÿ��򵥵Ŀν��и�ϰ��������ϰ���ſε�Ч��Ϊ���ſε��ѶȲ��ƽ��,����ϰ��һ�ſε�Ч��Ϊ100�����ſε��ѶȲ��ƽ����xhd��ѧ��ѡ��n�ſΣ�����һ���������ֻ�ܸ�ϰm�ſΣ�������һ���ϸ�ϰ�����Ч��ֵ�Ƕ��٣�
 

Input
�������ݵĵ�һ����һ������T����ʾ��T�����ݡ�
ÿ�����ݵĵ�һ������������n(1 <= n <= 40)��m(1 <= m <= n)��
������n�У�ÿ����һ��������a(1 <= a <= 100)����ʾ���ſε��Ѷ�ֵ��
 

Output
����ÿ���������ݣ����һ����������ʾ���Ч��ֵ��
 

Sample Input
2 2 2 52 25 12 5 89 64 6 43 56 72 92 23 20 22 37 31
 

Sample Output
5625 8836
 

Author
xhd
 

Source
 

Statistic | Submit | Discuss | Note
Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-08-07 16:16:26, Gzip enabled