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

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

Today, finally for the first time in history, I got a test case to hack the problem 2155D - Batteries.

But the contest had already ended :(

The test case is actually easy:

(n = 40, a = 4) and the active positions are (1,14,27,40). It should be solved in under (400) operations, but everyone who wrote code that checks by iterating over the gaps between the batteries will get the result in approximately (403)–(404) queries.

One day I'll also hack, today I got the motivation.

UPDATE — It's only for those who did not do cyclic test. (Including tourist)

  • MLA19 Do add this test case for later testing in practice.

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

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

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

Dream In Code '25 – Editorial
Hosted by Competitive Programming Club, IIIT Lucknow


Introduction

Thank you to everyone who participated in Dream In Code '25, held on Codeforces Gym as part of Equinox 2025!
We hope you enjoyed the problems and learned something new.

This editorial includes detailed explanations and intended solutions for all the problems from the contest.


Problems

A. Inversion Spectrum

Setter: Illumi

Solution
C++ Code

B. Pokémon Catching

Writers: Ansh0216 , Ankity_07

Solution
C++ Code

C. The Magical Path

Setter: RealAjay

Solution
C++ Code

D. Classwork

Setter: RealAryan

Solution
C++ Code

E. Story Book

Writer: PurnA_5

Solution
C++ Code

F. The Bengaluru Pop‑Up Food Lane

Writer: balleballe

Solution
C++ Code

G. Candy Carnival

Setter: karan_garg_12

Statement Summary
Solution
C++ Code

H. Time Quantum

Setter: RealAryan

Solution
C++ Code

I. Trip

Writer: PurnA_5

Tutorial
C++ Code

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

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