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

Автор jothin, история, 6 дней назад, По-английски

CodeForces Group Link: https://mirror.codeforces.com/group/EP1lUFnsjA

Problem A

Hint 1
Hint 2
Solution
Code (python)

Problem B

Hint
Solution
Code (python)

Problem C

Hint
Solution
Code (python)

Problem D

Hint
Solution
Code (python)

Problem E

Hint
Solution 1: Math
Code for Math approach (python)
Solution 2: DP
Code for DP approach (python)

Problem F

Hint
Solution
Code (python)

Problem G

Solution
Code (python)

Problem H

Hint 1
Hint 2
Hint 3
Solution
Code (python)

Problem I

Hint
Solution
Code (python)

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

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

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

Greetings, CP community!

The on site final round of NextTuring CP Indviduals will have 8 to 12 problems with ICPC style leaderboard.

A replay contest will be hosted with an open invite for anyone to join

Time: 26 April 2026 — 20:30 to 23:30 (GMT +5:30)

Codeforces group link: https://mirror.codeforces.com/group/0jQZ3oBvJG

Problem setter: jothin

Problem tester: ash1794

Approx difficulty of the problems would be in the range of div 3 to div 2

See you on the leaderboard!

UPD: Codeforces registration has started

EDIT: due to an error on my end, problems were not uploaded. We apologise for the inconvenience. This contest will now be a replay contest instead

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

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

Автор jothin, история, 2 недели назад, По-английски

CodeForces Group Link: https://mirror.codeforces.com/group/0jQZ3oBvJG

Problem A

Problem Author: jothin

Solution
Code (python)

Problem B

Problem Author: jothin

Solution
Code (python)

Problem C

Problem Author: jothin

Solution
Code (python)

Problem D

Problem Author: KartikManmode

Editorial for this problem will be out soon

Problem E

Problem Author: jothin

Solution
Code (python)

Problem F

Problem Author: sharkie1604

Solution
Code (Python)

Other notes

All solutions and codes are provided by the respective problem's author

We have received feedback about problem E being easier than A. I acknowledge the error on my end. Any inconvenience caused is regretted. We have requested our college management additional on site slots to ensure fairness.

Hope everyone enjoyed rest of the problems!

UPD1: added solution and code for problem F

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

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

Автор jothin, история, 2 недели назад, По-английски

Onsite group link: https://mirror.codeforces.com/group/EP1lUFnsjA

UPD: Final Results announced! standings

Greetings, CP community!

We are glad to invite all college students in India to take part in the preliminary round of NextTuring 2026 on 19 April 9:05 PM IST (GMT +5:30)

NextTuring 2026 is an individual CP Contest. The preliminary round is of 2 hours and consists of 5 to 8 problems. (Approx. Div 4 to Div 3 level problems will be given)

The top performers of the preliminary round will be invited to take part in an onsite round @ NST Bengaluru on 26 April 2026. The onsite round will be a part of our college's Tech Fest — AAYAM 2026

Prizes

mediocre — 1st place: ₹10,000

espacio — 2nd place: ₹6,000

Krritin — 3rd place: ₹4,000

optimus_maximus — 4th place: ₹2,000

nishtha.agarwal.211 — 5th place: ₹1,000

Registration Link (Registration is mandatory for qualifying for the onsite round)

Join the Codeforces group as a member and register for the contest.

Join the WhatsApp group for updates

All second round (onsite) participants who solve at least one problem will receive a certificate of participation

All cash prizes are for the second round (onsite)

Problem setters (preliminary round): jothin sharkie1604 KartikManmode

Problem setter (onsite round): jothin

Problem testers: ash1794

Both rounds will be held on ICPC rules and problems will be sorted in increasing order of difficulty

The onsite round will consist of 6 to 12 problems (Approx. Div 3 to Div 2 level problems will be given)

See you on the leaderboard!

UPD: There will be an additional CP event after this round. More about it here: https://mirror.codeforces.com/blog/entry/153047

UPD: Following a poll, preliminary round timing has been changed to 9:05 PM to 11:05 PM

UPD: Codeforces Registration is now open!

UPD: Offline finals date changed from 25 to 26

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

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

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

Problem link

My solution that is supposed to get a TLE but got AC instead

Generator script for the test case that could trigger a TLE:

from math import isqrt
N=10**6
sieve=[True]*(N+1)
for i in range(2,isqrt(N)+1):
    if not sieve[i]:continue
    for j in range(i**2,N+1,i):
        sieve[j]=False
sieve[0]=sieve[1]=False
primes=[x for x in range(2,N) if sieve[x]]
print(1)
print(len(primes),1000000)
print(*primes)

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

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