AdvancedRating 1500
Grid Paths
A robot starts at the top-left cell of an r × c grid and can only move right or down. How many different paths reach the bottom-right cell?
Input
Two integers r and c (1 ≤ r, c ≤ 18).
Output
The number of paths.
Sample 1
Input
2 2
Output
2
Sample 2
Input
3 3
Output
6
Output appears here