Slay the Spire is a game primarily about survival, collecting cards, and building a powerful deck to wipe out your foes.
Recently, Colin got interested in a special card : 'Alpha'.
A single line contains four integers
, representing there are
'Alpha' card ,
'Beta' card and
'Omega' card in the initial draw pile, and
is the number of cards should be taken out in each round.
A single integer, represents the minimum number of rounds guarantees that Colin will win.
In the worst case, Colin can only get the 'Omega' card for the first time in the fourth round.
first round: Colin may take out two 'Alpha' card and shuffle two 'Beta' card into the draw pile.
second round: Colin may take out an 'Alpha' card and a 'Beta' card, then shuffle a 'Beta' card and an 'Omega' card into the draw pile.
third round: Colin may take out two 'Beta' card and shuffle two 'Omega' card into the draw pile.
fourth round: Now there are only three 'Omega' card in the draw pile. Colin takes out two 'Omega' card and win the game.