rhythm_991's blog

By rhythm_991, history, 4 years ago, In English

In this question https://codeforces.net/contest/1367/problem/C for the same algorithm I tried 2 different approaches

  1. Using function link: https://codeforces.net/contest/1367/submission/84101002
  2. 2.Without using function link: https://codeforces.net/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?
  • Vote: I like it
  • -3
  • Vote: I do not like it

»
4 years ago, # |
  Vote: I like it +1 Vote: I do not like it

There was problem in way you input the string in the first code..

Fixed code: https://codeforces.net/contest/1367/submission/84132869