TGViewer
Engineering Notes Engineering Notes @boboshersnotes · 2.61K subscribers
Post #652 1.85K
Kecha GoFda tushgan qiziq savol:

O'nlik (decimal) raqamlardan tashkil topgan, uzunligi 3000 bo'lgan string berilgan. Raqamlar orasiga 2 ta "–" (minus) belgisini (hax qil o'rinlarga) shunday qo'yish kerak-ki, hosil bo'lgan expression natijasi shu usulda hosil qilish mumkin bo'lgan eng kichik nomanfiy qiymatga ega bo'lsin.

Masalan, "1234" stringni 12-3-4, 1-23-4 yoki 1-2-34 expressionlarga o'tkazish mumkin. Bularning orasida eng kichik nomanfiy natija 5. Faqat misolda string uzunligi 4 emas 3000 ))

Time limit 1 sekund, ya'ni 10 ^ 9 tadan kamroq operation bajarish mumkin.
  • 👍 19
More from @boboshersnotes
  1. Sep 28, 2026https://www.youtube.com/watch?v=9HIy5dJE-zQ
  2. Sep 22, 2026spa-net.com qiziq challange ekan, kun bo'yi "enter" bosishdan zerikkanda bosh qotirib ko'r…
  3. Sep 21, 2026Bizda odatda juma kunlarining ikkinchi yarmi ishga to'g'ridan-to'g'ri aloqador bo'lmagan n…
  4. Sep 15, 2026Yandex to’lov tizimi 2-3 oydan beri stabil ishlamayotgandi o’zi, butun to’liq o’chibdi she…
  5. Sep 13, 2026AI giant CEOs and tech influencers who have pushed for the development of AI “at any cost”…
  6. Sep 11, 2026Spent almost an entire day to come up with the shittiest solution to https://spa-net.com/t…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →