Getting TLE for O(n*k) solution. Can someone help!

Правка en1, от MdoingIt, 2024-08-28 22:42:50

Question — https://codeforces.net/problemset/problem/161/D

Submission — https://codeforces.net/contest/161/submission/278555376

IMO, it should pass the time constraints. Am I missing something?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский MdoingIt 2024-08-28 22:42:50 263 Initial revision (published)