Codeforces and Polygon may be unavailable from December 6, 19:00 (UTC) to December 6, 21:00 (UTC) due to technical maintenance. ×

ATofighi's blog

By ATofighi, history, 9 years ago, In English

Hi,

Can anyone help me with this problem?

You are given an array with n integers a1, a2, ..., an , a integer K and m queries.

There are two types of query:

  1. give you two integers l and r and ask you to print how many number of integers al, al + 1, ..., ar which equal to K.

  2. give you three integers l, r and v and ask you to add the value of al, al + 1, ..., ar by v.

You should print the answer of the first queries.

Thanks, Sorry for my bad English!

Full text and comments »

  • Vote: I like it
  • +10
  • Vote: I do not like it

By ATofighi, history, 9 years ago, In English

Hi All,

I see something strange in http://codeforces.net/contestRegistrants/613...

Is it a codeforces bug?

Full text and comments »

  • Vote: I like it
  • +41
  • Vote: I do not like it

By ATofighi, 9 years ago, In English

Hi Codeforces,

BWC(Black.White Crow) Round #5 is going to take place on BWC At 6 PM this Friday.(Tehran Timezone).Problem statements are in Perisan.

This Contest will have 5 problems and each of them has some subtasks. Each subtask is a short answer algorithmic problem(Like Project Euler). The problems will be easy. Writer of the Round is me (ATofighi). I'd like to thank strange_voice for testing the Contest.

Good luck and Have fun.

Full text and comments »

  • Vote: I like it
  • +6
  • Vote: I do not like it

By ATofighi, history, 9 years ago, In English

Hi Codeforces!

Do you see it?

I like it!

Thanks MikeMirzayanov and Codeforces team!

Full text and comments »

  • Vote: I like it
  • +13
  • Vote: I do not like it