aryanc403's blog

By aryanc403, 11 days ago, In English

We will hold yet another duel (Dominater069 vs TheScrasse), with live streaming.

The problem will be chosen from past codeforces contests randomly using CFTracker.

We are looking forward to your participation!

Duel format —
- 14 1v1 duels happen one for each rating between 1600-2900
- The score for each duel match will be the rating of the problem
- Each duel will have a predetermined X minute; if both the participants solve it less than or equal to X minutes difference, the match will end in a draw.
- In case of a tie of the points, the winner will be decided by the person who won the highest-rated match (2900, then 2800, then 2700, and so on).
- Duration of each duel is 45 mins.

Problem Match day Draw time difference (in minutes) Result
1600 712C - Memory and De-Evolution Day 1 3.5 TheScrasse won
2300 831F - Bamboo Partition Day 1 7 Dominater069 won
2400 355D - Game with Strings Day 1 7.5 Dominater069 won
2800 1072F - Familiar Operations Day 1 9.5 Draw
Day 1 results Dominater069 6100 — 3000 TheScrasse
1700 387C - George and Number Day 2 4 Draw. Dominater069 solved it 3 mins after TheScrasse
2200 731D - 80-th Level Archeology Day 2 6.5 Dominater069 won
2500 1100D - Dasha and Chess Day 2 8 Dominater069 won
Day 2 results Dominater069 10650 — 3850 TheScrasse
1800 853B - Jury Meeting Day 3 4.5 Draw. TheScrasse solved it 4:28 mins after Dominater069
2100 780E - Underground Lab Day 3 6 Draw. TheScrasse solved it 30s after Dominater069
2600 742E - Arpa’s overnight party and Mehrdad’s silent entering Day 3 8.5 TheScrasse won
Day 3 results Dominater069 13600 — 8400 TheScrasse
1900 862C - Mahmoud and Ehab and the xor Day 4 5 Draw. Dominater069 solved it 3 mins after TheScrasse
2000 862D - Mahmoud and Ehab and the binary string Day 4 5.5 Draw. TheScrasse solved it 1 min after Dominater069
2700 879E - Tournament Day 4 9 Dominater069 won
2900 Day 4 10 Match ended without this problem.
Match results Points: Dominater069 18250 — 10350 TheScrasse Problems: Dominater069 8 — 5 TheScrasse

Full text and comments »

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

By aryanc403, 2 weeks ago, In English

Hi everyone,

The third Indian ICPC Chennai onsite regional round will be held tomorrow in Chennai.

We plan to host a stream covering the round. The stream links will be posted shortly. The problems will be posted in this blog when the contest starts. The editorial will be posted after the contest ends.

Hope you enjoy the contest!

Contest Details

Update 1 — Stream links CodeChef and aryanc403

Update 2 — Statements have been released on the Google Drive

Update 3 — Editorial and Jury Solutions have been released on the same Google Drive. K is missing from the editorial (and probably will not be added).

Further, there are 3 posted challenges. You may try them.

  • In A ABC Stamp, suppose the stamp was $$$1, 2, ... M$$$ with the constraint of $$$M \le N$$$. Can you solve the problem of checking if a sequence is possible and constructing the set of operations? The constraints on $$$N$$$ remain $$$\le 2 \cdot 10^5$$$

  • In D Bin Packing, find a O(N^3) worst case complexity solution.

  • In F Easy Counting Problem, Solve the problem for $$$|M - N| \le 5000, N \le 10^7$$$

Update 4 — The results have been published at ICPC IIITDM Website. Congratulations to Top 3!

Full text and comments »

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

By aryanc403, 3 weeks ago, In English

Happy New Year! Inspired by -is-this-fft-, here is one more christmas magic project.

As the name says, by installing this user script, the colours of all the usernames will be randomly generated. Additionally, if you want, you can also shuffle the usernames on the page.

Installation guide

Screenshots

Example when you want to see everyone cyan
Example when colors are randomly distributed
Example when you want to also shuffle everyone's username

Thanks

Golovanov399 for antimagic

Update 1 — Added it as a browser extension. Firefox extension Chrome extension

Full text and comments »

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

By aryanc403, 4 weeks ago, In English

I'm currently live discussing the problems.
I will add problemwise timestamp after the discussion stream.
You can join in if something in this blog is unclear or if you have more questions.

2051A - Preparing for the Olympiad

Idea

My submission — 297813673

2051B - Journey

Hint 1
Hint 2
Hint 3

My submission — 297819285

2051C - Preparing for the Exam

Hint 1

My submission — 297827655

2051D - Counting Pairs

Hint 1

My submission — 297835279

2051E - Best Price

Hint 1
Hint 2

My submission — 297848049

2051F - Joker

Hint 1

My submission — 297910184

2051G - Snakes

Hint 1
Hint 2

My submission — 297893223

Full text and comments »

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

By aryanc403, 4 weeks ago, In English

Full video here.

2049A - MEX Destruction
My submission — 297457354

Video Editorial

2049B - pspspsps
My submission — 297550502

Video Editorial

2049C - MEX Cycle
My submission — 297489281

Video Editorial

2049D - Shift + Esc
My submission — 297550477

Video Editorial

2049E - Broken Queries
My submission — 297553061

Video Editorial
Chat QnA

Full text and comments »

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

By aryanc403, 5 weeks ago, In English

Full video here. Thanks demoralizer for joining the stream today.

2044A - Easy Problem
demoralizer submission — 296586444
My submission — 296586331

Video Editorial

2044B - Normal Problem
demoralizer submission — 296595864
My submission — 296594560

Video Editorial

2044C - Hard Problem
demoralizer submission — 296603582
My submission — 296599512

Video Editorial

2044D - Harder Problem
demoralizer submission — 296618352
My submission — 296629761

Video Editorial

2044E - Insane Problem
demoralizer submission — 296636979
My submission — 296612765

Video Editorial

2044F - Easy Demon Problem
demoralizer submission — 296679401
My submission — 296712565

Video Editorial

2044G1 - Medium Demon Problem (easy version) 2044G2 - Medium Demon Problem (hard version)
demoralizer submission — 296705500 296704188
My submission — 296667331 296739507

Video Editorial

2044H - Hard Demon Problem
demoralizer submission — 296729186
My submission — 296659051

Video Editorial
QnA with demoralizer

Full text and comments »

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

By aryanc403, 5 weeks ago, In English
  • Vote: I like it
  • +390
  • Vote: I do not like it

By aryanc403, 3 months ago, In English

I'm currently live discussing the problems. I will add problemwise timestamp after the discussion stream, and also format the blog properly.
You can join in if something in this blog is unclear or you have more questions.

2025A - Two Screens

Idea

My submission — 285842091

2025B - Binomial Coefficients, Kind Of

Hint 1
Hint 2
Hint 3

My submission — 285848201

2025C - New Game

Solution 1: Hint
Solution 2: Hint

My submission — 285852480

2025D - Attribute Checks

Hint 1
Hint 2
Hint 3
Hint 4
Hint 5
Hint 6

My submission — 285868260

2025E - Card Game

Hint 1
Hint 2
Hint 3
Hint 4
Hint 5
Bonus

My submission — 285892958

2025F - Choose Your Queries

Hint 1
Hint 2
Hint 3
Hint 4
Hint 5
Hint 6
Hint 7

My submission — 285887128

Full text and comments »

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

By aryanc403, 4 months ago, In English

2013A - Zhan's Blender

Idea

Submission — 282005858

2013B - Battle for Survive

Hint 1
Hint 2
Hint 3

Submission — 282011553

2013C - Password Cracking

Hint 1
Hint 2
Hint 3
Hint 3

Submission — 282024928

2013D - Minimize the Difference

Hint 1
Hint 2
Hint 3
Hint 4
Hint 5
Hint 6

Submission — 282029106

2013E - Prefix GCD

Hint 1
Hint 2
Hint 3
Hint 4

Submission — 282034547

2013F1 - Game in Tree (Easy Version)

Hint 1
Hint 2
Hint 3
Hint 4
Hint 5
Hint 6
Hint 7

Submission — 282075612

2013F2 - Game in Tree (Hard Version)

Full text and comments »

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

By aryanc403, 4 months ago, In English

I'm currently live discussing the problems. I will add problemwise timestamp after the discussion stream. You can join in if something in this blog is unclear or there are more questions.

2014A - Robin Helps

Idea

My submission — 282225317

Video Editorial

2014B - Robin Hood and the Major Oak

Hint 1
Hint 2
Hint 3

My submission — 282233711

Video Editorial

2014C - Robin Hood in Town

Hint 1
Hint 2
Hint 3
Hint 4

My submission — 282243282

Video Editorial

2014D - Robert Hood and Mrs Hood

Hint 1

My submission — 282252869

Video Editorial

2014E - Rendez-vous de Marian et Robin

Hint 1
Hint 1
Hint 3
Hint 3

My submission — 282288329

Video Editorial

2014F - Sheriff's Defense

Hint 2

My submission — 282298489

Video Editorial

2014G - Milky Days

Hint 1
Hint 2
Hint 3
Hint 4
Hint 5

My submission — 282316286

Video Editorial

2014H - Robin Hood Archery

Hint 1
Hint 2
Hint 3
Hint 4
Hint 5
Hint 6
Hint 7

My submission — 282302515

Video Editorial
Chat QnA

Full text and comments »

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

By aryanc403, 4 months ago, In English

Checkout Codeforces Month of Blog Posts Pt. II (Win $500+!)

Full video

2005A - Simple Palindrome

Hint 1
Hint 2
Hint 3
Hint 4
Hint 5

My submission — 281138271

Video Editorial

2005B1 - The Strict Teacher (Easy Version)

Hint

My submission — 281147180

Video Editorial

2005B2 - The Strict Teacher (Hard Version)

Hint 1
Hint 2

My submission — 281146462

Video Editorial

2005C - Lazy Narek

Hint 1
Hint 2
Hint 3
Hint 4

My submission — 281162411

Video Editorial

2005D - Alter the GCD

My solution has a bad time complexity. Anyways you can check what I did and what the reasoning was.

My submission — 281180437

TLE solution

2005E1 - Subtangle Game (Easy Version)

Hint 2
Hint 3
Hint 3

My submission — 281195816

Video Editorial

2005E2 - Subtangle Game (Hard Version)

Hint 1
Hint 2
Hint 3
Hint 4

My submission — 281209324

Video Editorial
Chat QnA

Full text and comments »

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

By aryanc403, 5 months ago, In English

I'm currently live discussing the problems. I will add problemwise timestamp after the discussion stream. You can join in if something in this blog is unclear or there are more questions.

2008A - Sakurako's Exam

Idea

My submission — 279068120

Video Editorial

2008B - Square or Not

Hint 1
Hint 2
Hint 3

My submission — 279071329

Video Editorial

2008C - Longest Good Array

Hint 1
Hint 2
Hint 3

My submission — 279077055

Video Editorial

2008D - Sakurako's Hobby

Hint 2

My submission — 279082914

Video Editorial

2008E - Alternating String

Hint 1
Hint 2
Hint 3
Hint 4

My submission — 279127640

Video Editorial

2008F - Sakurako's Box

Hint 1
Hint 2
Hint 3

My submission — 279089762

Video Editorial

2008G - Sakurako's Task

Hint 1
Hint 2
Hint 3
Hint 4
Hint 6
Hint 7
Hint 8
Pitfall

My submission — 279141273

Video Editorial

2008H - Sakurako's Test

Hint 1
Hint 2
Hint 3
Hint 4

My submission — 279103861

Video Editorial
Chat QnA

Full text and comments »

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

By aryanc403, 5 months ago, In English

Full video

2003A - Turtle and Good Strings

Hint 1

My submission — 278058173

Video Editorial

2003B - Turtle and Piggy Are Playing a Game 2

Hint 1

My submission — 278054761

Video Editorial

2003C - Turtle and Good Pairs

Hint 1
Hint 2
Hint 3

My submission — 278156003

Video Editorial

2003D1 - Turtle and a MEX Problem (Easy Version)

Hint 1
Hint 2
Hint 3
Hint 4

My submission — 278155964

Video Editorial

2003D2 - Turtle and a MEX Problem (Hard Version)

Hint 1
Hint 2

My submission — 278157539

Video Editorial

2003E1 - Turtle and Inversions (Easy Version)

Hint 1
Hint 2
Hint 3
Hint 4
Hint 5
Hint 6

My submission — 278160207

Video Editorial

2003E2 - Turtle and Inversions (Hard Version)

Hint 1
Hint 2
Hint 3

My submission — 278161293

Video Editorial
Chat QnA

Full text and comments »

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

By aryanc403, 5 months ago, In English

Full video

2001A - Make All Equal

Hint 1
Hint 2
Hint 3
Hint 4

My submission — 277424035

Video Editorial

2001B - Generate Permutation

Hint 1
Hint 2
Hint 3
Hint 4

My submission — 277339480

Video Editorial

2001C - Guess The Tree

Hint 1
Hint 2
Hint 3
Hint 4
Hint 5

My submission — 277423597

Video Editorial

2001D - Longest Max Min Subsequence

Hint 1
Hint 2
Hint 3
Hint 4

My submission — 277427421

Video Editorial

2001E1 - Deterministic Heap (Easy Version)

Idea

My submission — 277431412

Video Editorial
Chat QnA

Full text and comments »

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

By aryanc403, 5 months ago, In English

Full Video on youtube

2004A - Closest Point

Idea

My submission — 276684814

Video Editorial

2004B - Game with Doors

Idea

My submission — 276687609

Video Editorial

2004C - Splitting Items

Hint 1
Hint 2
Hint 3
Hint 4

My submission — 276689378

Video Editorial

2004D - Colored Portals

Hint 1
Hint 2

My submission — 276697311

Video Editorial

2004E - Not a Nim Problem

Hint 1

My submission — 276702173

Exercise find out the bug in 276586233. I'm not sure if its hackable or not.

Video Editorial

2004F - Make a Palindrome

Hint 1
Hint 2
Hint 3
Hint 4
Hint 4
Following solutions will be hacked

My submission — 276706737

Video Editorial

Full text and comments »

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

By aryanc403, 5 months ago, In English

I'm currently live discussion the problems.
I will add problemwise timestamp after the discussion stream.
You can join in if something in this blog is unclear or there are more questions.

2000A - Primary Task

Idea

My submission — 276111053

2000B - Seating in a Bus

Idea

My submission — 276114559

2000C - Numeric String Template

Hint 0
Hint 1
Hint 2

My submission — 276126482

2000D - Right Left Wrong

Hint 3

My submission — 276137058

2000E - Photoshoot for Gorillas

Hint 1
Hint 2

My submission — 276261729

2000F - Color Rows and Columns

Hint 1
Hint 2

2000G - Call During the Journey

Hint 2
Hint 3

My submission — 276211659

2000H - Ksyusha and the Loaded Set

Hint 1
Hint 2
Hint 2

My submission — 276196913

Full text and comments »

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

By aryanc403, 5 months ago, In English

1998A - Find K Distinct Points with Fixed Center

Idea

My submission — 275541733

Video editorial

1998B - Minimize Equal Sum Subarrays

Hint 1
Hint 2
Hint 3

My submission — 275547485

Video editorial

1998C - Perform Operations to Maximize Score

My solution is a bit overkill, check out neal submission 275613185

Hint 1
Hint 2

My submission — 275635373

Video editorial

1998E1 - Eliminating Balls With Merging (Easy Version)

Hint 1
Hint 2
Hint 3
Hint 4

My submission — 275608667

Video editorial

1998E2 - Eliminating Balls With Merging (Hard Version)

Hint 1
Hint 2
Hint 3
Hint 4

My submission — 275619707

Video editorial

Full text and comments »

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

By aryanc403, 5 months ago, In English

1999A - A+B Again?

Idea

My submission — 274717610

Video editorial

1999B - Card Game

Idea

My submission — 274958241

Video editorial

1999C - Showering

Idea

My submission — 274959892

Video editorial

1999D - Slavic's Exam

Hint 1
Hint 2

My submission — 274963318

Video editorial

1999E - Triple Operations

Hint 1
Hint 2
Hint 3
Hint 4
Hint 5
Hint 6

My submission — 274967855

Video editorial

1999F - Expected Median

Hint

My submission — 274970725

Video editorial

1999G1 - Ruler (easy version)

Hint 1
Hint 3
Hint 4
Hint 5

My submission — 274972155

Video editorial

1999G2 - Ruler (hard version)

Hint 1
Hint 2
Hint 3
Hint 4

My submission — 274973808

Video editorial
Chat QnA

Full text and comments »

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

By aryanc403, 5 months ago, In English

1993A - Question Marks

Video editorial

1993B - Parity and Sum

Hint 1
Hint 2
Hint 3
Video editorial

1993C - Light Switches

Hint 1
Hint 2
Video editorial

1993D - Med-imize

Hint 1
Hint 3
Hint 4
Hint 5
Video editorial

1993E - Xor-Grid Problem

Hint 1
Hint 2
Hint 3
Hint 4
Video editorial

1993F1 - Dyn-scripted Robot (Easy Version)

Hint 1
Hint 2
Video editorial

Full text and comments »

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

By aryanc403, 6 months ago, In English

1997A - Strong Password

Hint
Video editorial

1997B - Make Three Regions

Idea
Video editorial

1997C - Even Positions

Hint
Discussion

1997D - Maximize the Root

Video editorial

1997E - Level Up

Hint 1
Hint 2
Hint 3
Hint 4
Video editorial
Daily Chat QnA

Full text and comments »

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

By aryanc403, 6 months ago, In English

1991A - Maximize the Last Element

Video editorial

1991B - AND Reconstruction

Idea
Video editorial

1991C - Absolute Zero

Hint
Video editorial

1991D - Prime XOR Coloring

Hint 1
Hint 2
Video editorial
Bonus: How to write checker for D?

1991E - Coloring Game

Hint 1
Hint 2
Hint 3
Hint 4
Hint 5
Video editorial

1991F - Triangle Formation

Hint
Video editorial
Daily Chat QnA

Full text and comments »

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

By aryanc403, 6 months ago, In English

1996A - Legs

Hint
Video editorial

1996B - Scale

Idea
Video editorial

1996C - Sort

Video editorial

1996D - Fun

Hint 1
Video editorial

1996E - Decode

Hint 1
Hint 2
Video editorial

1996F - Bomb

Hint 1
Hint 3
Video editorial

1996G - Penacony

Hint 1
Hint 2
Video editorial
Daily Chat QnA

Full text and comments »

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

By aryanc403, 6 months ago, In English

A follow-up on Topcoder and Competitive Programming.
TCO 2023 will be the last TCO?
(Virtual) TopCoder Open 2023 Finals cancelled as well.

I found the following announcement on topcoder discord.

Full text and comments »

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

By aryanc403, 10 months ago, In English

Hello everyone! I'm happy to announce the 27th stage of the 2nd Universal Cup. It will be held from April 6 to April 7. You can choose between one of seven possible time windows.

The problems were originally used in the ICPC Contests prepared by our team. Namely (ICPC India Online Round, Kanpur Regional, Chennai Regional, Amritapuri Regional, and Asia West Continent Final). If you participated, please refrain from participating in this stage of the Universal Cup.
We are planning to organise one more stage using the remaining contest problems.

Setters and Testers: kevinsogo Shisuko jtnydv25 IceKnight1093 aryanc403 Dragonado xennygrimmato ritul_kr_singh kshitij_sodani PraveenDhinwa Vichitr mexomerf JaySharma1048576 T1duS magga rivalq

We would like to give a special thanks to the CodeDrills teams (deepa_panwar Balajiganapathi Vichitr) for developing & sharing the contest with us. Thank you!

About Universal Cup

You will be able to participate in the UCup contest in the following time windows:

Time windows

Full text and comments »

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

By aryanc403, history, 12 months ago, In English

Hi Codeforces,

ICPC Amritapuri 2023 Regionals Round will happen this Sunday on CodeDrills.

Live commentary: We will be live on ICPCLive channel. We will start once the contest starts.

P.S. — All of the problems will be non-interactive, please read the guide of interactive problems before the contest.
P.P.S. — Some problems may have subtasks, so choose problem-solving order wisely.

Upd: We are live now. Sorry for the initial hiccups.
Upd 2: Closing ceremony and solution discussion stream — https://youtu.be/txbyFVl5kBg

Full text and comments »

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