Problem 28473 --多项式

28473: 多项式

Time Limit: 3 Sec  Memory Limit: 512 MB
Submit: 1  Solved: 1
[Submit][Status][Web Board][Creator:][下载FPS0元][添加到购物车][下载测试数据0元][4kb]

Description

Input

Output

Sample Input

1
3 3 2 1 10
1011
01

Sample Output

2

HINT

Source

[Submit][Status]