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

Easy Derivative

Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 848    Accepted Submission(s): 463


Problem Description
You must be very familiar with derivative in math,and I guarantee that you can work out the derivative easily. Generally speaking,the last problem is the most difficult problem only a few can work out. However,it is not the case in this contest designed by Samuel. Give you 1 number n,and 2 extra numbers a and b you can work this problem out. For example,f(x)=ax^b,the 2 class derivative is f''=a*b*(b-1)x^(b-2),here n means n class. Here all the numbers are integers.
 

Input
The input consists 2 parts:
test case number t,each of the test case contains 3 number n(n>=0),a,b(a,b will not be very large),the original one is like the format of f(x)=ax^b.
 

Output
Output the a after n times' work.
 

Sample Input
2 1 2 3 3 4 5
 

Sample Output
6 240
 

Author
Samuel
 

Source
 

Statistic | Submit | Discuss | Note
Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-05-03 21:09:24, Gzip enabled