Problem 1142 --数论编程18-中国剩余定理

1142: 数论编程18-中国剩余定理

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

Description

Input

Output

Sample Input

2
2 1
4 3

Sample Output

3

HINT












Source

[Submit][Status]