Problem 1062 --搜索-解方程DFS

1062: 搜索-解方程DFS

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 12  Solved: 10
[Submit][Status][Web Board][Creator:]

Description

Input

Output

方程解的个数

Sample Input

3
100
1 2
-1 2
1 2

Sample Output

104

Source

[Submit][Status]