Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

Блог пользователя rhythm_991

Автор rhythm_991, история, 4 года назад, По-английски

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

  1. Using function link: https://codeforces.me/contest/1367/submission/84101002
  2. 2.Without using function link: https://codeforces.me/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?
  • Проголосовать: нравится
  • -3
  • Проголосовать: не нравится

»
4 года назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

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

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