HELP IN DIV1 A PROBLEM 745 DIV1

Revision en1, by Noob5644, 2021-10-01 12:31:49

https://mirror.codeforces.com/contest/1580/problem/A

In this problem i know the brute force which will be (400)^4 which will give tle for sure.can anyone tell me some better approach for this by which it can be solved in the given time limit

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Noob5644 2021-10-01 12:31:49 269 Initial revision (published)