Counting Rectangles
1722E1600· expert6s256 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
32 12 33 21 1 3 45 51 12 23 34 45 53 3 6 62 1 4 51 1 2 101 1 100 1001 1 3 33 1999 999999 999999 9981 1 1000 1000
Output
641905442993004
58%
1722E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)