littlejuruo's blog

By littlejuruo, 2 months ago, In English

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!

 
 
 
 
  • Vote: I like it
  • -63
  • Vote: I do not like it

»
2 months ago, # |
  Vote: I like it +8 Vote: I do not like it

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.