Atcoder ABC123 English Editorial D help ?

Revision en1, by spam_123, 2019-04-06 16:57:52

Hey , Can anyone please tell how to solve D of today's atcoder beginner contest

Link here

How to efficently brute it ?

Any help will be appreciated

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English spam_123 2019-04-06 16:57:52 252 Initial revision (published)