Codeforces celebrates 10 years! We are pleased to announce the crowdfunding-campaign. Congratulate us by the link https://codeforces.com/10years. ×

Alex_KPR's blog

By Alex_KPR, 9 years ago, translation, In English,

It will be fully translated later, sorry for slowpoking :(


Blackjack (problem A, div-2). The problem's author is Alex_KPR

 

 

Obviously, suits are not change the answer. Look at all possible situations:

[0 - 10] — zero ways.
[11] — four ways using aces.
[12 - 19] — four ways using cards from 2 to 9.
[20] — 15 ways, they are described in statement.
[21] — four ways using aces.
[22 - 25] — zero ways.

 

 

Complexity is O(1).

 

Read more »

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

By Alex_KPR, 9 years ago, translation, In English,

Hi all!

Now it's time for 80th Codeforces Beta Round.

The authors of the contest are: Alex_KPRwingerRADConnectorit4.kp. I hope all problems will be interesting for you and not extremely hard. ;)

Today is Connector's birthday — so, let's congratulate him together!

Good luck and have fun!
_____________________________________

Thank you for your action! =)

Top 10 participants in the first division are:

Place
Who
1
 SergeiRogulenko
2
 hos.lyric
3
 Romka
4
 neal
5
 sdya
6
 KADR
7
 ftiasch
8
 niyaznigmatul
9
 dolphinigle
10
 AleX

There are only two participants who beat problem E: the winner of the contest SergeiRogulenko and MBabin who gets 76th place.

Top 3 participants in the second division are:

Place
Who
1
 anrieff
2
 zplinti1
3
 Efgen

Congratulations and good luck at the next time!

Official tutorial will be added later. But AlexanderBolshakov already wrote the tutorial about most of problems.

Problems were translated by Delinur.
_____________________________________

Tutorial is here.

Read more »

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