Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

KIMJONGOOF's blog

By KIMJONGOOF, history, 3 weeks ago, In English

Hi!! As apparent from the Title, I am getting TLE on test 21 for the question and I have no idea how to optimize it.(I read the tutorial but could not understand)

Question Link -> https://codeforces.net/contest/1848/problem/C

Submission Link -> https://codeforces.net/contest/1848/submission/278910279

I am pretty sure that there has to be some way to optimize the ans() function in my code. Can anyone help??

Thanks!!

Full text and comments »

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

By KIMJONGOOF, history, 3 weeks ago, In English

Below are 2 submissions I made for the above mentioned CSES problem.

Question link -> https://cses.fi/problemset/task/1158

AC submission -> https://cses.fi/problemset/result/10353320/

Runtime error submission -> https://cses.fi/problemset/result/10353300/

The only difference between the submissions is that in the AC submission, I commented out (#define int long long). Otherwise everything else is exactly the same.

Could someone explain why this happens? Is it some fault in my code? or something wrong with CSES website?

Full text and comments »

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

By KIMJONGOOF, history, 3 weeks ago, In English

Question link -> https://codeforces.net/contest/2010/problem/C1

My Submission -> https://codeforces.net/contest/2010/submission/278562743

Why is my answer for testcase 114 wrong??

*Edit -> Resolved

Full text and comments »

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