How to solve this?

Правка en1, от NikitaMikhaylov, 2017-08-27 22:55:57

Hello, codeforces!

Recently I came up with a task, but I couldn't solve it.

The task is:

You are given a two arraysу a and b of size n (1 ≤ n ≤ 105). You should answer q (1 ≤ q ≤ 105) queries:

  • for given integer k (1 ≤ k ≤ n) you need to find maximal value ai + bk - i.
Теги help

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский NikitaMikhaylov 2017-08-28 03:24:05 1 Tiny change: 'two arraysу $a$ and $' -> 'two arrays $a$ and $'
en1 Английский NikitaMikhaylov 2017-08-27 22:55:57 342 Initial revision (published)