#16528. H
H
说明
给你一个n*m的棋盘,求最长的一根对角线穿过了多少个1*1的小正方形。输入格式
多组数据,每组输入n,m (n,m<10^18)输出格式
输出方案数1 5
2 2
4 4
8 45
2
4
8
1 5
2 2
4 4
8 45
2
4
8
By signing up a 算道OJ universal account, you can submit code and join discussions in all online judging services provided by us.