ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 2082. Poker

Some tests
Posted by bsu.mmf.team 12 Jun 2016 14:03
Don't make 100+ submissions like I did.
Just check these tests to make sure you correctly understand the problem description.

Test #1:
10 20 0
5 3 4
turn
1 100
2 100
3 100
4 100
5 100
6
1 calls 20
2 calls 20
3 calls 20
4 calls 10
5 checks
dealing flop
80 80 80 80 80

answer:
6
4 checks
5 checks
1 checks
2 checks
3 checks
dealing turn

Test #2:
10 20 10
5 3 3
turn
1 11
2 12
3 100
4 100
5 100
7
1 calls 1
2 calls 2
3 raises 10 to 30
4 folds
5 calls 10
dealing flop
5 checks
0 0 50 80 45

answer:
4
3 bets 10
5 calls 10
dealing turn
5 bets 5

Test #3 (this is what 10th test about):
10 20 0
5 3 4
flop
1 200
2 100
3 100
4 200
5 100
3
1 calls 20
2 calls 20
3 raises 20 to 100
100 80 0 100 80

answer:
5
4 calls 90
5 folds
1 calls 80
2 folds
dealing flop

Test #4: (this is what 32th test about - pay attention to the order of players' turns)
10 20 0
2 2 1
river
1 1000
2 1000
10
2 calls 10
1 checks
dealing flop
1 bets 20
2 raises 30 to 50
1 calls 30
dealing turn
1 checks
2 checks
dealing river
900 830

answer:
2
1 bets 30
2 raises 70 to 100

Test #5: (This is what 33th test about, 0 - is the wrong answer!!!!)
10 20 0
3 3 3
flop
1 100
2 100
3 100
0
80 80 80

answer:
6
3 calls 20
1 calls 10
2 checks
dealing flop
1 checks
2 checks

Good luck!!!

Edited by author 12.06.2016 14:04

Edited by author 13.06.2016 20:51
Re: Some tests
Posted by Al.Cash 20 Jun 2016 20:54
Correct me if I'm wrong, but isn't test #2 invalid because it has one more possible answer?

5
3 checks
dealing turn
5 checks
3 bets 10
5 raises 5 to 15
Re: Some tests
Posted by bsu.mmf.team 21 Jun 2016 15:55
This answer isn't possible because of this:
"If that is the first time when module takes turn then it should restore all players’ turns with all data it has. Otherwise module also has the information about all players’ turns before the previous bot turn".

It means that you must have not more than one bot's turn in the answer. At least if M > 0.
Re: Some tests
Posted by Combatcook 24 Jun 2016 17:26
"It means that you must have not more than one bot's turn in the answer. At least if
 M > 0."
Is there situation when M=0?
Re: Some tests
Posted by Al.Cash 25 Jun 2016 03:29
Yes, first sample for example. But looks like there's always not more than one bot's turn.
Re: Some tests
Posted by bsu.mmf.team 27 Jun 2016 12:52
Here's some modification of my 5th test:
10 20 0
3 3 3
river
1 100
2 100
3 100
0
80 80 80

It seems to be correct, and the answer has > 1 bot's turn:
14
3 calls 20
1 calls 10
2 checks
dealing flop
1 checks
2 checks
3 checks
dealing turn
1 checks
2 checks
3 checks
dealing river
1 checks
2 checks
Re: Some tests
Posted by Al.Cash 27 Jun 2016 14:25
I checked and there are no such tests. "If that is the first time when module takes turn then it should restore all players’ turns with all data it has." - probably this means it's the first bot turn, otherwise the module would be called before.
Re: Some tests
Posted by Combatcook 4 Jul 2016 09:17
"Yes, first sample for example. But looks like there's always not more than one bot's turn."
I mean M is number of all turns, not only bot's.
Also I'd like to ask another question: in all tests here bot's turn occupies first line of output, so is there any test where bot's turn is not in first line, or it contradicts to the condition?
Re: Some tests
Posted by bsu.mmf.team 12 Jul 2016 01:52
Yes. See 1st sample test.
Re: Some tests
Posted by Combatcook 16 Apr 2017 17:26
And what about this test:
10 20 2
5 3 4
flop
PhilIvey 500
TomDwan 500
ViktorBlom 500
Grobot 500
Ziigmund 500
6
PhilIvey folds
TomDwan calls 20
ViktorBlom raises 40 to 60
Grobot calls 50
Ziigmund folds
TomDwan folds
498 478 338 438 478

ans1:
1
dealing flop

ans2:
3
dealing flop
Grobot checks
VictorBlom bets 100

Which answer is right? Thanks in advance.

Edited by author 16.04.2017 17:27