atcoder ABC 042D

Revision en1, by duty_spark, 2019-09-10 01:14:41

Hey, y'all. I'm trying to solve problem D from atcoder ABC 042. Link to the problem. Using regular DP to count the number of ways will not work because of the high constraints. Any hints will be welcomed, thanks.

Tags #atcoder

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English duty_spark 2019-09-10 01:14:41 282 Initial revision (published)