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

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

Автор FullMetalChains, история, 11 месяцев назад, По-английски

Hello Codeforces community, Recently, I found this problem in the Meta Careers page which I just can't seem to come up with an approach for. I have looked for answers and I could find no solutions online. Here's the link-

https://www.metacareers.com/profile/coding_puzzles/?puzzle=280063030479374

Does anyone have any idea how to solve this?

Полный текст и комментарии »

  • Проголосовать: нравится
  • -6
  • Проголосовать: не нравится

Автор FullMetalChains, история, 13 месяцев назад, По-английски

Here are two solutions to problem D of today's contest

1.First solution

My Code
  1. Second solution
His Code

The first one shows TLE on testcase 8 while the second one shows accepted. Both are same solutions to the problem.

Does anyone know why the results are so different?

Полный текст и комментарии »

  • Проголосовать: нравится
  • +1
  • Проголосовать: не нравится