pribic's blog

By pribic, history, 6 weeks ago, In English

I am getting wrong answer for https://codeforces.com/contest/1520/problem/F1. Can someone please look at my submission and help whats wrong here? I tried many samples but couldn't find the bug.

https://codeforces.com/contest/1520/submission/115514700

updated link with l = 1 — https://codeforces.com/contest/1520/submission/115621830

TIA

 
 
 
 
  • Vote: I like it
  • -8
  • Vote: I do not like it

»
6 weeks ago, # |
Rev. 2   Vote: I like it +1 Vote: I do not like it

You are asking the queries in zero-based indexing. For your first query , l=0 .

  • »
    »
    6 weeks ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    it is not the case. please check updated link with l = 1

»
6 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by pribic (previous revision, new revision, compare).