| Winter Cup 5.0 Online Mirror Contest |
|---|
| Finished |
This is an interactive problem.
Vertex Cover team got tired of problem solving and decided to go to the casino to have some fun and play Blackjack. In this casino, the goal of Blackjack is to collect cards that total to more points than the dealer, without exceeding $$$1$$$.
Vertex Cover members are not good in betting, so they asked for your help.
You will play several rounds, In each round, each one of you and the dealer have initially a score of $$$0$$$, the dealer will ask you if you want a card with a randomly and uniformly generated number between $$$0$$$ and $$$1$$$ written on it. If you say hit, the dealer will give you that card. If your total hand (the sum of numbers written on the cards) becomes more than $$$1$$$, you get bust and lose. Otherwise, the dealer will ask you again. If you say stand, your turn is over with a total $$$T$$$, and dealer's turn starts. The dealer will get a card and do the following :
A single line containing a single integer $$$n=10^5:$$$ The number of games.
After reading the number of games $$$n$$$. You will play $$$10^5$$$ rounds, each round starts when the interactor outputs G.
In each turn of the current round, you have two possible movements:
You have to use a flush operation right after the movement. For example, in C++ you should use the function fflush(stdout) or cout.flush(), in Java — System.out.flush(), and in Python — sys.stdout.flush().
3 1 1 1 0 1 1 1 1 0 1 1 1
G S 0.265346 S 0.789890 S 0.932484 W G S 0.070631 S 0.182233 S 0.726913 S 0.827251 L G S 0.785957 S 0.896195 L
| Name |
|---|


