编程介的小学生 2017-06-14 09:43 采纳率: 20.5%
浏览 960
已采纳

Easy Derivative

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

  • 写回答

1条回答 默认 最新

  • threenewbee 2017-07-09 09:58
    关注
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥50 切换TabTip键盘的输入法
  • ¥15 可否在不同线程中调用封装数据库操作的类
  • ¥15 微带串馈天线阵列每个阵元宽度计算
  • ¥15 keil的map文件中Image component sizes各项意思
  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM
  • ¥15 划分vlan后不通了