aryan57's blog

By aryan57, history, 3 years ago, In English

I practice questions in Codeforces Problemset by hiding tags for unsolved problems. However, sometimes it turns out to be a April Fools question and sometimes after spending 30-40 mins in a question I find that what was a Kotlin only problem, then I re-write my whole approach in Java then download Jetbrains IDE to convert that to Kotlin, and most of times I don't get AC as I don't know Java well. These things wastes time!

Currently in CF, we can see problems for a particular tag using the filter box in right side, but there is no option to remove problems for a particular tag (*special problem in this case) using the filter.

I request the admins to add this feature.

Full text and comments »

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

By aryan57, history, 4 years ago, In English

I was solving this problem on cf . My c++ code got accepted but it is giving segmentation fault in my local computer. Why is it so? I also tried other online compilers like ideone , and it was working there too.

Same case with java. My java code got AC in cf but gives stackoverflow error in my computer.

My operating system is Ubuntu 20.04

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

By aryan57, history, 4 years ago, In English

I was solving this question https://codeforces.net/contest/1132/problem/F using the editorial's method.
Only difference is, I was using iterative dp rather than recursive dp.

My submission https://codeforces.net/contest/1132/submission/114519575
Copy pasted editorial submission https://codeforces.net/contest/1132/submission/114519641

I thought N=500 will give TLE in a O(N^3) solution, however it passed and in less time than the editorial's solution which I think is in O(N^2).

Why is it so? Also, is the editorial solution really O(N^2) or am I wrong? What should be the constraints on N to pass a O(N^3) solution as a general rule of thumb?

Full text and comments »

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

By aryan57, history, 4 years ago, In English

Hello Codeforces!

I have subscribed to Codeforces Google Calendar https://codeforces.net/calendar so that I don't miss any codeforces contests. I have also added notifications (for 6 hrs and 1 hr before) as email and on the phone.

But recently, codeforces stream started streams (I am not interested in attending them), and I am getting unnecessary notifications on my mobile and Gmail inbox.

I suggest the codeforces admins to have a separate google calendar for the streams, as not everyone wants to attend them.

UPDATE : You can access separate google calendars of different coding websites here https://clist.by/resources/. It also has codeforces google calendar, and not with the streams.

Full text and comments »

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