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

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

How to solve this problem?

find the number of permutations of length N that have longest increasing subsequence equal to K

1<=N<=40 , 1<=K<=5 problem link

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

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

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

Can anyone help me to solve this problem?

Given a sequence A (of length N) of positive integers and an integer k, find out how many of its sub-sequences are k-medial. where k-medial means that the median of this subsequence is k. A sub-sequence of A is any sequence {A[i], A[i+1], A[i+2] ... A[j]}, where 0 ≤ i ≤ j < N.

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

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

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

if you participated in national olympiads or IOI talk about your strategy

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

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