reaper28's blog

By reaper28, history, 5 years ago, In English

question : https://mirror.codeforces.com/problemset/problem/1299/A solution : https://ideone.com/7l3fWY can anyone point out the error?

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

| Write comment?
»
5 years ago, # |
Rev. 3   Vote: I like it +1 Vote: I do not like it

Probably you should initialize arrays: ll pre[n+1] = {}; ll suf[n+1] = {};