E - Sum of Sums of Restricted Sequences

2 secs 1024 MB
uni_kakurenbo's icon uni_kakurenbo

01_test-0002.txt


入力

出力