Code written in C++, got AC. But written with same logic in Python, got TLE.
Question link: DORAEMON
C++ submission
Python submission
I know Python is slower than C++, but this is not suppose to happen, I guess???
Code written in C++, got AC. But written with same logic in Python, got TLE.
Question link: DORAEMON
C++ submission
Python submission
I know Python is slower than C++, but this is not suppose to happen, I guess???