cf/mirror

Yet Another Array Counting Problem

CF
1748E2300· international master2s512 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
4
3 3
1 3 2
4 2
2 2 2 2
6 9
6 9 6 9 6 9
9 100
10 40 20 20 100 60 80 60 60
Output
8
5
11880
351025663
1748E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…