Python Solution TLE but Same Algorithm AC in C++

Revision en1, by PerfectoZ, 2021-12-16 19:16:03

Can someone help me with how I can remove TLE in this python code : 39519137 This is the same Algorithm but in C++ : 139524288 I guess O(nlogn) shouldn't be a TLE in python for n=1e5 Here is the Problem 1617C - Paprika and Permutation Thanks

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English PerfectoZ 2021-12-17 11:27:17 1 Tiny change: 'ubmission:39519137]\' -> 'ubmission:139519137]\'
en1 English PerfectoZ 2021-12-16 19:16:03 303 Initial revision (published)