In this question https://codeforces.com/contest/1367/problem/C for the same algorithm I tried 2 different approaches
-
Using function link: https://codeforces.com/contest/1367/submission/84101002
-
Without using function link: https://codeforces.com/contest/1367/submission/84126840
If I am using the function then I am getting TLE and if I'm not using the function I'm gettig AC. Why so?
Aucun commentaire:
Enregistrer un commentaire