#P2241. 统计方形(数据加强版)
统计方形(数据加强版)
Description
Given an grid board, compute how many squares and how many rectangles (excluding squares) it contains.
Input Format
One line: two positive integers ().
Output Format
One line: two positive integers, the numbers of squares and rectangles (excluding squares) in the grid, respectively.
2 3
8 10
Hint
Translated by ChatGPT 5
京公网安备 11011102002149号