4776: P1211 [USACO1.3] 牛式 Prime Cryptarithm(普及-)
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description

Input

Output

Sample Input Copy
5
2 3 4 6 8
Sample Output Copy
1
HINT
