QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#119107#4859. Poker Game: ConstructionutilforeverWA 126ms3524kbC++2015.2kb2023-07-04 22:39:312023-07-04 22:39:32

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3424kb

input:

3
JC 4H
TS 5D
7C 3C
7H TH
2D KH
4D JC

output:

YES JS 8D KH 6D 3H 9H
YES TH TD TC 5S 5H 5C
YES JS 4S TH 5S 5H 5C
YES 7S 9C 5C JS QS 4D
YES TS TD AS 4H 6D 8H
YES 3S TS TD TC QS QH
YES 2S QS 5C 6H TS 3C
YES 4S 4H 4C JS JH JD
YES 2S KS 4S JS JH JD

result:

ok 3 test cases (3 test cases)

Test #2:

score: 0
Accepted
time: 1ms
memory: 3472kb

input:

2
AS AH
AC AD
AS AH
2S 2H

output:

YES 6S 8D 4H 7S 6H 6D
NO
YES TS TH KS KH 7S 7H
YES AD JD TC KC 6H 3H
YES 2D 2C 6H 9H KH TC
NO

result:

ok 2 test cases (2 test cases)

Test #3:

score: 0
Accepted
time: 1ms
memory: 3464kb

input:

1
9C KC
JC 5D

output:

YES 9S 6S 8D 4H 7S TD
YES JS JH JD 5S 5H 5C
YES 9S KS JS 5S 5H 5C

result:

ok 1 test cases (1 test case)

Test #4:

score: -100
Wrong Answer
time: 126ms
memory: 3524kb

input:

100000
6S 7C
KH 3S
5S 2D
AC TS
QD 6H
TC JD
5C AD
4S TH
AD 3S
JC 5S
TH QH
9S JH
AD JC
JS 7H
3S 9S
JC 6S
4D 7S
3S JH
AD JS
7D 4D
7D QS
QH JC
4H JS
7H TS
5D AD
3S 8D
AC TH
5D 3S
9H TD
TS 7D
7D 8C
AD 5H
7C QS
2C TH
QD AS
4S 2H
8D JS
9S 5H
2C TC
2D 5S
TD 2C
AS 2D
6H 6S
AC 2S
2C 8D
4C KS
JD 9D
2D AD
AS QH...

output:

YES 6H 8D 5C 9C TD 2C
YES KS KD KC 3H 3D 3C
NO
YES 5H 6H 3H 9H KH JS
YES AS AH AD TH TD TC
NO
YES QS 2D 4D AS 7H 8H
YES TS TH TD JS JH JC
YES QS 6S TS JS JH JC
YES 5S KH 2C 8H QC 3H
YES 4H 4D 4C TS TD TC
YES 5S AS 4H 4D 4C TS
YES AS QS 6H 7D TS 8D
YES JS JH JD 5H 5D 5C
YES AS 3H JS 5H 5D 5C
YES TS A...

result:

wrong answer The construction is wrong. (test case 99)