My code is not working in Python but in CPP.

Revision en1, by ishan_luhani, 2023-10-15 10:18:47

Hello everyone, I am facing a problem with a Problem.

Problem Link:

When I tried to submit my Python Code. It failed due to TLE, But when I converted it to CPP with help of a website. It was Accepted.

CPP Solution Link:

Is there a trick in python I am missing? or Is it that I should switch to CPP?

Tags help, python in competitions, c++


  Rev. Lang. By When Δ Comment
en2 English ishan_luhani 2023-10-15 10:51:48 16
en1 English ishan_luhani 2023-10-15 10:18:47 521 Initial revision (published)