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

Автор littlejuruo, 2 года назад, По-английски

MikeMirzayanov

My friend told me that if you want to propose a contest, click the button. But I can't find the button, so I decided to write it here.

CF Round 1000 (Div.1+Div.2, the highest quality round ever created!)

A. A Plus B

Given two integers, output A Plus B.

B. Game of AI(Easy Ver.)

The only line contains two positive integers k and M (1≤k≤5000, 2≤M≤109 ). It is guaranteed that 218 is a divisor of M−1 and M is a prime number.

You need to calculate the answer for n=k.

Output a single integer — the number of different pairs of sequences for n=k modulo M.

C. Game of AI(Hard Ver.)

The only line contains two positive integers k and M (1≤k≤105, 2≤M≤109 ). It is guaranteed that 218 is a divisor of M−1 and M is a prime number.

Output k lines, where the i-th line contains a non-negative integer, which is the answer for n=i modulo M.

MikeMirzayanov I think 3 problems are ENOUGH! Please accept my proposal!!!!!!! HOPE everyone enjoyed my own problems!

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

»
2 года назад, # |
  Проголосовать: нравится +8 Проголосовать: не нравится

Sorry, I think your problem isn't proper not only due to the quality but also due to your informal manner of writing, and you'd better to improve your cp level first and prevent others from knowing your ideas.

»
22 месяца назад, # |
Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

no Mathforces