jaglike_makkar's blog

By jaglike_makkar, 13 months ago, In English

Hello Fellow Coders,

Warm and pleasant greetings from Coding Club, IIT Ropar.

With utmost zest, we want to announce that our club is organizing some exciting programming-driven events under our Annual Techno-Cultural Fest – ZEITGEIST. (zeitgeist.org.in)

The event details are as follows:

  1. COD-COM: A 3-stage coding tournament with prizes worth 30k. (Team event)
    Registration link: Unstop | Townscript
  2. Algo-Unlock: A 2-stage reverse coding-based event with prizes worth 16k. (Individual event)
    Registration link: Unstop | Townscript
  3. Code-Hunt: A single-stage treasure hunt-based event with prizes worth 27k. (Team event)
    Registration link: Unstop | Townscript

Important:

  1. The 1st Stage of COD-COM is in online mode on CodeChef on 16th March’23 from 8:00 PM to 10:15 PM IST. (Note: The contest will follow ICPC rules).

  2. The 1st Stage of Algo-Unlock is in online mode on Codeforces on 17th March’23 from 9:00 PM to 11:00 PM IST.

NOTE:

  • Further details & rulebooks can be found and downloaded through the registration links or through the official site of Zeitgeist (https://zeitgeist.org.in/).
  • Contest link will be shared with your registered email IDs. So, please make sure you register for the events.

Update:

Full text and comments »

  • Vote: I like it
  • +61
  • Vote: I do not like it

By jaglike_makkar, history, 2 years ago, In English

I submitted my code for 1612E - Сообщения in different C++ compilers and here are the results:

  1. C++14 — 138535056 — Accepted (1481 ms)
  2. C++17 (64) — 138534883 — TLE (3000 ms)
  3. C++17 — 138534840 — Accepted (1559 ms)
  4. C++20 (64) 138534744 — TLE (3000 ms)

All 4 are the same codes. I can understand that there can be minor differences in time taken, but here the difference is around 1.5 ms. I mostly code in python and don't have much idea on performance differences between different C++ compilers.

As far as I can think, int operations are faster in C++ while long long operations are faster in C++ (64). But still, the difference is huge. Is there any other reason and how to decide appropriate C++ compiler?

Full text and comments »

  • Vote: I like it
  • +17
  • Vote: I do not like it

By jaglike_makkar, history, 2 years ago, In English

Please have a look at the following two submissions of 1582E - Пчеленок и подотрезки:

  1. 138848779
  2. 138849288

The first submission gave RTE on test 8. But just by replacing ll with int, it passed test 8. (Though it failed on test 9 due to integer overflow). Can anyone tell why is the first submission giving RTE? Any help is appreciated.

C++ is not my primary language, so I may be making some silly errors.

Full text and comments »

  • Vote: I like it
  • +8
  • Vote: I do not like it