Блог пользователя amankbps

Автор amankbps, история, 16 месяцев назад, По-английски

You are given an array of n integers. Your task is to calculate the bitwise or of each window of k elements, from left to right. In this problem the input data is large and it is created using a generator. Input The first line contains two integers n and k: the number of elements and the size of the window. The next line contains four integers x, a, b and c: the input generator parameters. The input is generated as follows:

problem link

how to solve this efficiently i got tle when i try to solve n*31

Полный текст и комментарии »

  • Проголосовать: нравится
  • +9
  • Проголосовать: не нравится

Автор amankbps, история, 3 года назад, По-английски

Is their any way to convert lps array to z array

Полный текст и комментарии »

  • Проголосовать: нравится
  • +3
  • Проголосовать: не нравится

Автор amankbps, история, 4 года назад, По-английски

I want to solve this problem https://codeforces.me/contest/1029/problem/A but unable to implement that finding the period of substring in string if someone share approach it will great help

Полный текст и комментарии »

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится