Hello everyone, I am facing a problem with a Problem.↵
↵
Problem Link: https://codeforces.net/problemset/problem/363/B↵
↵
When I tried to submit my [Python Code](https://codeforces.net/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://codeforces.net/contest/363/submission/228253805↵
↵
Is there a trick in python I am missing? or Is it that I should switch to CPP?↵
↵
↵
Problem Link: https://codeforces.net/problemset/problem/363/B↵
↵
When I tried to submit my [Python Code](https://codeforces.net/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://codeforces.net/contest/363/submission/228253805↵
↵
Is there a trick in python I am missing? or Is it that I should switch to CPP?↵
↵