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

PyPy 3 question
Разница между ru1 и ru2, 7 символ(ов) изменены
Hi!↵

I couldn't understand why two solutions below works differently.↵

Problem: https://codeforces.me/contest/1675/problem/F↵

Two solutions:↵

1. https://codeforces.me/contest/1675/submission/156139655 — Passed, fastest among PyPy 3 64-bit solutions. 
2. https://codeforces.me/contest/1675/submission/156139626 — TLE↵

The main difference is in input reading:↵

1. A = {int(e) — 1 for e in input().split()}↵
2. A = {int(e) for e in input().split()}↵

It would be great to understand what is wrong with the second solution?↵

Thanks!

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
ru2 Русский Aksnov 2022-05-07 15:29:47 7 Мелкая правка: 'lutions.\n2. https' -> 'lutions.\n\n2. https'
ru1 Русский Aksnov 2022-05-06 23:47:40 573 Первая редакция (опубликовано)