VaishCodes's blog

By VaishCodes, history, 17 months ago, In English

problem statement: https://codeforces.me/contest/1886/problem/B

my entry: https://codeforces.me/contest/1886/submission/323127501

passed the 1st test case in vs code, printing correct output in vs code but output in code forces is either -0.000... or 0.000.... how can i avoid this?

Full text and comments »

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

By VaishCodes, history, 19 months ago, In English

problem statement: https://codeforces.me/problemset/problem/1977/B

my submission: https://codeforces.me/contest/1977/submission/315209972

there is no nesting in any loop, and any loop runs atmost 32 times, why is my code exceeding time limit of 1 second??

Full text and comments »

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