My code is not working in Python but same logic does in CPP.
Разница между en1 и en2, 16 символ(ов) изменены
Hello everyone, I am facing a problem with a Problem.↵

Problem Link: https://mirror.codeforces.com/problemset/problem/363/B↵

When I tried to submit my [Python Code](https://mirror.codeforces.com/contest/363/submission/228253286). It failed due to TLE, But when I converted it to CPP with help of a website. It was Accepted.↵

CPP Solution Link: https://mirror.codeforces.com/contest/363/submission/228253805↵

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

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский ishan_luhani 2023-10-15 10:51:48 16
en1 Английский ishan_luhani 2023-10-15 10:18:47 521 Initial revision (published)