编程介的小学生 2017-02-07 02:34 采纳率: 20.5%
浏览 939
已采纳

Math Homework

问题描述 :

Alice has a lot of math homework to do today.
All the problems have the same form:
Please find out:
Eloh

  However Alice is not interested at the homework at all. Can you write a program to help
her?(As the answer may be very large,you should only work out the ans mod 1000000007).
输入:

The first line of the input contains an integer T which means the number of test cases. Then T lines follow, each line consists of six non-negative integers, a; b; c; n; k; k′.
a, b, c, n ≥ 0 and fit in 32-bit signed number
k + k′≤ 10
输出:

The first line of the input contains an integer T which means the number of test cases. Then T lines follow, each line consists of six non-negative integers, a; b; c; n; k; k′.
a, b, c, n ≥ 0 and fit in 32-bit signed number
k + k′≤ 10
样例输入:

1
2 0 1 3 1 1
样例输出:

10

  • 写回答

1条回答 默认 最新

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

报告相同问题?

悬赏问题

  • ¥15 关于#目标检测#的问题:大概就是类似后台自动检测某下架商品的库存,在他监测到该商品上架并且可以购买的瞬间点击立即购买下单
  • ¥15 神经网络怎么把隐含层变量融合到损失函数中?
  • ¥30 自适应 LMS 算法实现 FIR 最佳维纳滤波器matlab方案
  • ¥15 lingo18勾选global solver求解使用的算法
  • ¥15 全部备份安卓app数据包括密码,可以复制到另一手机上运行
  • ¥20 测距传感器数据手册i2c
  • ¥15 RPA正常跑,cmd输入cookies跑不出来
  • ¥15 求帮我调试一下freefem代码
  • ¥15 matlab代码解决,怎么运行
  • ¥15 R语言Rstudio突然无法启动