QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#303085#5061. Allinucup-team1005#AC ✓21ms3856kbC++201.6kb2024-01-11 17:50:032024-01-11 17:50:04

詳細信息

Test #1:

score: 100
Accepted
time: 0ms
memory: 3788kb

input:

2
AC KC QC JC TC
AC TD 8S 5H 2C

output:

allin
check

result:

ok 2 lines

Test #2:

score: 0
Accepted
time: 13ms
memory: 3792kb

input:

100000
2S 2C 3C 2D 2H
2H 2D 2C 2S 3D
2C 3H 2H 2D 2S
2C 2D 2H 3S 2S
2H 2C 2S 2D 4C
2S 2D 4D 2H 2C
2S 2C 2D 4H 2H
2C 2H 2D 2S 4S
2D 2C 2S 2H 5C
2H 2C 5D 2D 2S
2D 2S 5H 2C 2H
2S 2D 2H 2C 5S
6C 2D 2H 2S 2C
2S 2D 2H 2C 6D
2S 6H 2H 2D 2C
6S 2S 2H 2C 2D
2C 7C 2H 2D 2S
2S 2C 2H 2D 7D
2D 2S 2H 7H 2C
2D 2S 2C...

output:

check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
...

result:

ok 100000 lines

Test #3:

score: 0
Accepted
time: 20ms
memory: 3788kb

input:

100000
JH 3H TD 2C QD
3H TD QH 2C JH
3H 2C TD JH QS
KC JH 3H 2C TD
3H JH KD TD 2C
JH 2C 3H KH TD
2C KS 3H JH TD
JH AC 2C TD 3H
3H TD AD 2C JH
TD JH 2C 3H AH
2C TD AS JH 3H
3H TD 2C QC JS
QD 3H 2C JS TD
QH TD 3H JS 2C
TD 2C 3H JS QS
KC 3H JS TD 2C
JS 3H TD KD 2C
JS KH 2C 3H TD
JS 3H 2C TD KS
TD 3H JS...

output:

check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
...

result:

ok 100000 lines

Test #4:

score: 0
Accepted
time: 16ms
memory: 3728kb

input:

100000
9D 6D 7S 2C TS
7S 9D JC 6D 2C
JD 2C 7S 6D 9D
6D 2C 7S JH 9D
9D 7S 2C JS 6D
9D QC 2C 7S 6D
2C 9D 7S QD 6D
2C 9D QH 6D 7S
2C 7S 9D QS 6D
KC 2C 7S 6D 9D
7S 9D 6D 2C KD
KH 7S 9D 2C 6D
KS 7S 9D 2C 6D
6D 7S AC 2C 9D
7S 6D 9D 2C AD
6D 2C 7S AH 9D
9D 7S 6D 2C AS
9H 2C 9S 6D 7S
TC 6D 2C 9H 7S
7S 6D 2C...

output:

check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
...

result:

ok 100000 lines

Test #5:

score: 0
Accepted
time: 20ms
memory: 3728kb

input:

100000
QC QS 9C 3C 2D
KC 9C 3C QC 2D
2D 9C QC 3C KD
KH QC 3C 2D 9C
3C KS QC 9C 2D
QC 9C AC 2D 3C
QC AD 2D 3C 9C
2D 9C QC 3C AH
3C AS QC 9C 2D
QH 3C 9C QD 2D
2D 3C 9C QD QS
3C KC 9C 2D QD
2D QD KD 3C 9C
3C QD 2D KH 9C
2D 9C QD 3C KS
QD AC 2D 9C 3C
2D AD 3C QD 9C
QD 2D 3C 9C AH
9C QD 3C 2D AS
3C 2D 9C...

output:

check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
...

result:

ok 100000 lines

Test #6:

score: 0
Accepted
time: 20ms
memory: 3732kb

input:

100000
7S 2D 6D 5D 9D
6D 2D 7S 9H 5D
9S 6D 5D 2D 7S
5D 2D 6D 7S TC
6D 7S 5D TD 2D
7S 6D 2D TH 5D
5D 2D 7S 6D TS
6D 5D 7S 2D JC
5D 6D JD 2D 7S
5D 6D JH 2D 7S
5D JS 7S 2D 6D
7S QC 5D 6D 2D
5D 7S QD 6D 2D
7S 6D 5D 2D QH
QS 7S 5D 6D 2D
6D KC 5D 2D 7S
6D 5D KD 2D 7S
KH 6D 2D 5D 7S
KS 6D 5D 2D 7S
7S 5D 6D...

output:

check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
...

result:

ok 100000 lines

Test #7:

score: 0
Accepted
time: 20ms
memory: 3856kb

input:

100000
2H 7C 3S 3C AH
3S AS 3C 2H 7C
3C 2H 7D 7H 3S
7S 7D 2H 3C 3S
7D 8C 3S 3C 2H
7D 3S 2H 3C 8D
8H 7D 2H 3S 3C
8S 2H 3S 7D 3C
9C 3S 7D 3C 2H
3C 7D 2H 9D 3S
7D 3C 2H 9H 3S
2H 3S 9S 7D 3C
7D 3C TC 2H 3S
3C 3S 2H TD 7D
7D 2H TH 3C 3S
2H 3S 7D 3C TS
3C 2H 7D 3S JC
7D 2H JD 3S 3C
2H 3S 3C 7D JH
2H 7D JS...

output:

check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
...

result:

ok 100000 lines

Test #8:

score: 0
Accepted
time: 16ms
memory: 3700kb

input:

100000
2H AD TH 4S AC
2H 4S TH AC AH
2H 4S TH AC AS
2H 4S AH AD TH
TH 2H 4S AD AS
AS 4S 2H TH AH
JC 4S TS JD 2H
JC TS JH 4S 2H
4S JS JC TS 2H
QC TS 4S 2H JC
4S TS JC QD 2H
2H 4S QH TS JC
TS 4S QS JC 2H
4S TS JC 2H KC
4S TS 2H KD JC
4S 2H JC TS KH
4S KS TS 2H JC
JC 4S TS 2H AC
AD TS JC 2H 4S
TS JC AH...

output:

check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
...

result:

ok 100000 lines

Test #9:

score: 0
Accepted
time: 20ms
memory: 3780kb

input:

100000
3C 8S 5H 2S 6S
5H 2S 9C 3C 6S
2S 6S 5H 9D 3C
5H 9H 2S 3C 6S
9S 2S 6S 5H 3C
6S TC 2S 5H 3C
TD 5H 6S 3C 2S
6S 2S TH 5H 3C
2S 5H 6S 3C TS
JC 2S 3C 6S 5H
JD 3C 2S 5H 6S
5H 6S 2S JH 3C
3C 5H JS 6S 2S
2S QC 3C 5H 6S
5H 2S 6S QD 3C
2S 3C QH 6S 5H
3C 6S 2S 5H QS
KC 3C 2S 5H 6S
2S 6S 5H 3C KD
5H 2S KH...

output:

check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
...

result:

ok 100000 lines

Test #10:

score: 0
Accepted
time: 21ms
memory: 3724kb

input:

100000
5C 8D 7D TC 2S
TD 8D 7D 2S 5C
7D 2S 5C 8D TH
2S 5C TS 7D 8D
8D 5C 2S 7D JC
8D 2S JD 7D 5C
7D 8D 5C JH 2S
JS 8D 7D 2S 5C
2S 5C QC 7D 8D
7D QD 8D 2S 5C
QH 2S 8D 7D 5C
QS 7D 5C 2S 8D
7D 5C 8D 2S KC
8D 5C KD 7D 2S
KH 8D 7D 2S 5C
KS 2S 7D 5C 8D
8D AC 5C 7D 2S
8D 7D AD 2S 5C
8D AH 5C 7D 2S
2S 5C AS...

output:

check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
...

result:

ok 100000 lines

Test #11:

score: 0
Accepted
time: 16ms
memory: 3804kb

input:

100000
3D 3C 9C QC QH
QS 9C QC 3D 3C
9C 3D KC 3C QC
3C 9C QC 3D KD
9C KH QC 3D 3C
9C QC 3C 3D KS
3D 3C AC QC 9C
3D 9C AD QC 3C
9C 3C QC 3D AH
3C 9C AS QC 3D
9C QD 3C 3D QH
QS QD 3C 9C 3D
QD 3C 9C KC 3D
9C 3D KD 3C QD
3D 3C 9C KH QD
KS 9C 3C 3D QD
3D AC 3C QD 9C
9C 3D AD QD 3C
9C 3C AH 3D QD
3C 3D AS...

output:

check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
...

result:

ok 100000 lines

Test #12:

score: 0
Accepted
time: 20ms
memory: 3776kb

input:

100000
TS 5S 6D 3C QC
QD 3C TS 5S 6D
6D QH 3C 5S TS
5S 6D TS QS 3C
KC 3C TS 6D 5S
KD 5S 3C 6D TS
6D 5S TS KH 3C
3C KS 5S 6D TS
TS 3C 5S AC 6D
6D 5S 3C TS AD
3C 6D AH TS 5S
5S AS TS 6D 3C
3C 5S 6D JD JC
6D JH 3C 5S JC
JC 6D 5S JS 3C
3C JC QC 5S 6D
JC 5S 6D QD 3C
3C JC 6D QH 5S
6D QS JC 5S 3C
KC 3C 5S...

output:

check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
...

result:

ok 100000 lines

Test #13:

score: 0
Accepted
time: 21ms
memory: 3760kb

input:

100000
3D 8H AS 7C 4C
3D 8S 9C 4C 7C
8S 7C 9D 4C 3D
9H 4C 8S 7C 3D
9S 8S 3D 7C 4C
7C 3D 8S 4C TC
7C TD 8S 3D 4C
8S 3D 7C TH 4C
3D TS 8S 4C 7C
4C 3D 8S JC 7C
3D JD 7C 4C 8S
7C 3D 4C JH 8S
7C 4C 8S 3D JS
7C 8S QC 3D 4C
QD 8S 3D 7C 4C
7C 4C 8S 3D QH
7C 4C 8S QS 3D
4C 7C 3D 8S KC
KD 4C 7C 8S 3D
8S KH 4C...

output:

check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
...

result:

ok 100000 lines

Test #14:

score: 0
Accepted
time: 16ms
memory: 3724kb

input:

100000
3D TH AS 7D TS
JC TH 3D JD 7D
7D JH 3D JC TH
7D TH JC JS 3D
QC JC 7D TH 3D
QD JC 3D 7D TH
TH 3D JC 7D QH
QS 7D JC TH 3D
JC 7D 3D TH KC
TH 7D JC KD 3D
TH 7D JC 3D KH
KS TH 3D 7D JC
3D AC TH 7D JC
JC AD 3D TH 7D
AH TH JC 3D 7D
AS 7D TH JC 3D
7D TH 3D JH JD
JS JD TH 3D 7D
3D TH QC JD 7D
QD JD 3D...

output:

check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
...

result:

ok 100000 lines

Test #15:

score: 0
Accepted
time: 20ms
memory: 3764kb

input:

100000
KS 3H 7S JC 5D
JC 7S 3H AC 5D
5D 3H AD 7S JC
3H 5D AH 7S JC
AS 7S 5D 3H JC
5D JH 3H JD 7S
JS 5D JD 3H 7S
3H QC 7S 5D JD
7S 5D QD 3H JD
QH 5D JD 3H 7S
JD 7S 5D QS 3H
5D JD KC 3H 7S
JD 3H 5D KD 7S
KH 3H 5D 7S JD
KS 7S 5D JD 3H
JD 5D AC 7S 3H
AD 5D 7S 3H JD
JD AH 5D 3H 7S
5D AS 3H JD 7S
3H 5D JH...

output:

check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
...

result:

ok 100000 lines

Test #16:

score: 0
Accepted
time: 20ms
memory: 3768kb

input:

100000
KC 3S TC 4D QD
3S TC 4D QD KD
4D QD TC KH 3S
TC 3S QD 4D KS
AC TC 4D 3S QD
AD TC QD 3S 4D
4D TC QD AH 3S
TC 3S 4D AS QD
QS TC 4D 3S QH
4D QH 3S TC KC
3S KD QH TC 4D
TC 3S QH 4D KH
KS 3S 4D QH TC
QH 4D 3S AC TC
QH AD 4D TC 3S
TC QH 3S 4D AH
AS QH 3S 4D TC
TC 4D KC 3S QS
TC 3S KD QS 4D
TC 3S 4D...

output:

check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
...

result:

ok 100000 lines

Test #17:

score: 0
Accepted
time: 20ms
memory: 3764kb

input:

100000
8H KD JH AS 3S
8H 3S JH KH KS
KH 3S AC 8H JH
JH 8H KH AD 3S
AH JH 8H KH 3S
KH AS 8H 3S JH
8H KS 3S JH AC
AD 8H KS 3S JH
3S JH KS AH 8H
3S KS 8H JH AS
AD 8H 3S AC JH
AC AH 8H JH 3S
3S 8H AC JH AS
JH 8H AH AD 3S
JH AS 3S 8H AD
8H AS AH JH 3S
8H JS QC 3S QD
QC JS 3S QH 8H
JS QS 8H QC 3S
8H JS 3S...

output:

check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
...

result:

ok 100000 lines

Test #18:

score: 0
Accepted
time: 20ms
memory: 3724kb

input:

100000
4C 6S QH AH JD
AS 4C QH JD 6S
JD 4C 6S QS KC
6S JD QS 4C KD
KH 6S 4C QS JD
KS 4C JD QS 6S
4C QS 6S AC JD
QS JD 4C 6S AD
QS 4C AH JD 6S
4C AS JD 6S QS
4C KC JD KD 6S
4C KC JD KH 6S
KC KS 4C JD 6S
JD AC 6S KC 4C
JD AD KC 6S 4C
JD 4C AH KC 6S
4C 6S AS KC JD
6S JD KD 4C KH
KS 6S 4C KD JD
KD 6S AC...

output:

check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
...

result:

ok 100000 lines

Test #19:

score: 0
Accepted
time: 20ms
memory: 3788kb

input:

100000
4D QS 9C TH 6D
KC TH 9C 6D 4D
9C 4D TH KD 6D
4D 6D TH KH 9C
KS 6D 9C TH 4D
6D AC 4D 9C TH
6D AD 4D 9C TH
AH 9C 4D TH 6D
AS 9C TH 4D 6D
JC TS 9C 4D 6D
9C 6D JD TS 4D
9C 6D TS JH 4D
6D 4D 9C JS TS
9C 6D 4D TS QC
9C QD 4D TS 6D
TS 9C 4D 6D QH
TS QS 4D 9C 6D
4D TS KC 6D 9C
TS 6D KD 4D 9C
6D TS KH...

output:

check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
...

result:

ok 100000 lines

Test #20:

score: 0
Accepted
time: 16ms
memory: 3780kb

input:

100000
8C KC 4H 6D 9C
6D 9C KD 8C 4H
6D 9C 4H 8C KH
KS 4H 9C 8C 6D
AC 6D 9C 8C 4H
AD 6D 8C 4H 9C
4H 9C AH 8C 6D
4H 6D AS 8C 9C
9D 8C 4H 9H 6D
9S 6D 4H 8C 9D
TC 6D 8C 4H 9D
TD 6D 4H 9D 8C
8C 4H 9D 6D TH
8C 4H 9D TS 6D
6D 4H JC 9D 8C
9D JD 8C 6D 4H
6D JH 4H 8C 9D
4H 8C 6D JS 9D
9D QC 4H 6D 8C
4H QD 8C...

output:

check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
...

result:

ok 100000 lines

Test #21:

score: 0
Accepted
time: 20ms
memory: 3732kb

input:

100000
4S KH 6H KD AH
KH 4S KD 6H AS
AC 6H 4S KD KS
4S AD KD 6H KS
KD 6H 4S KS AH
KD 4S 6H AS KS
4S AC AD KD 6H
4S KD AH AC 6H
AS 6H AC 4S KD
AH KD 4S 6H AD
AS AD 6H KD 4S
AS 6H 4S KD AH
4S KH 6H KS AC
AD KS KH 6H 4S
4S AH KH KS 6H
KS AS KH 4S 6H
6H 4S AD KH AC
AH 4S 6H AC KH
AC AS KH 6H 4S
AD 6H 4S...

output:

check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
...

result:

ok 100000 lines

Test #22:

score: 0
Accepted
time: 20ms
memory: 3800kb

input:

100000
5C 8D TS 7S KC
TS 7S 8D 5C KD
8D KH 5C TS 7S
7S TS 8D 5C KS
5C 7S TS 8D AC
8D 5C AD 7S TS
AH TS 8D 5C 7S
7S 5C TS 8D AS
JC 7S 8D JD 5C
JC 5C 8D 7S JH
5C 7S 8D JS JC
8D JC QC 7S 5C
7S QD JC 8D 5C
5C JC 8D 7S QH
JC QS 8D 7S 5C
5C JC 7S KC 8D
8D 5C 7S JC KD
7S KH 5C 8D JC
JC 8D KS 5C 7S
7S JC 5C...

output:

check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
...

result:

ok 100000 lines

Test #23:

score: 0
Accepted
time: 20ms
memory: 3844kb

input:

100000
5H 7D KD JD 5S
KH 5S 5H JD 7D
KS 5S JD 5H 7D
JD AC 5H 7D 5S
5H 5S JD 7D AD
JD 5S 5H AH 7D
5S JD 7D AS 5H
JH 5S 7D JS 5H
7D QC JH 5H 5S
JH QD 7D 5H 5S
7D JH QH 5S 5H
5H 7D 5S JH QS
5S JH 5H KC 7D
5S JH KD 5H 7D
5H KH 7D 5S JH
KS 7D JH 5S 5H
JH 7D 5S 5H AC
JH 7D AD 5H 5S
JH AH 5H 7D 5S
7D 5S JH...

output:

check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
...

result:

ok 100000 lines

Test #24:

score: 0
Accepted
time: 20ms
memory: 3728kb

input:

100000
QH 5S 9H 7S TD
QS 5S TD 7S 9H
5S KC 7S 9H TD
KD 5S 7S 9H TD
5S KH 9H 7S TD
7S 9H KS TD 5S
TD 7S 9H 5S AC
AD 5S 7S TD 9H
TD 7S 5S 9H AH
9H AS 7S TD 5S
TS 9H TH 7S 5S
TH JC 5S 9H 7S
TH 7S JD 5S 9H
TH JH 9H 5S 7S
5S JS TH 9H 7S
5S 7S QC TH 9H
7S TH 9H 5S QD
5S 7S TH QH 9H
QS 5S 7S 9H TH
5S 9H KC...

output:

check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
...

result:

ok 100000 lines

Test #25:

score: 0
Accepted
time: 20ms
memory: 3800kb

input:

100000
AD KS JS 6D 7S
6D AH KS JS 7S
AS JS 7S 6D KS
AC 7S AD JS 6D
6D AH JS 7S AC
7S AC 6D AS JS
AD 6D JS AH 7S
JS AS AD 7S 6D
JS 6D AH AS 7S
QH 6D QC QD 7S
QD 7S 6D QC QS
QC QD 6D KC 7S
6D 7S QC QD KD
KH 6D QC 7S QD
7S KS 6D QD QC
QD QC 6D AC 7S
QC AD QD 7S 6D
QD 6D 7S QC AH
QD 6D AS 7S QC
QC 6D 7S...

output:

check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
...

result:

ok 100000 lines

Test #26:

score: 0
Accepted
time: 20ms
memory: 3844kb

input:

100000
7D 7C JD JS 9D
7D JD 7C QC 9D
7C QD 9D JD 7D
QH 9D 7C 7D JD
JD QS 9D 7C 7D
JD 9D KC 7C 7D
JD KD 7C 9D 7D
JD 9D 7D KH 7C
JD KS 7D 9D 7C
7C 9D AC JD 7D
7C 9D AD 7D JD
7C AH JD 7D 9D
7D AS JD 9D 7C
JH 7D 9D JS 7C
JH 7D QC 7C 9D
QD JH 9D 7C 7D
7C QH 7D JH 9D
QS 7C JH 7D 9D
7D KC 7C 9D JH
JH KD 7D...

output:

check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
...

result:

ok 100000 lines

Test #27:

score: 0
Accepted
time: 20ms
memory: 3852kb

input:

98960
7S QC JS KS KD
JS KD AC QC 7S
JS 7S AD QC KD
KD QC JS 7S AH
KD AS JS 7S QC
JS 7S QC KS KH
KH JS AC QC 7S
AD QC 7S KH JS
QC 7S KH JS AH
JS 7S AS KH QC
7S AC QC KS JS
7S AD QC KS JS
JS KS QC AH 7S
7S JS AS KS QC
JS AC 7S QC AD
JS 7S AH QC AC
AS JS QC 7S AC
7S AD JS AH QC
7S AD AS JS QC
AS AH JS ...

output:

check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
...

result:

ok 98960 lines

Test #28:

score: 0
Accepted
time: 0ms
memory: 3856kb

input:

1
2H 5H AH 4H 3H

output:

check

result:

ok single line: 'check'

Test #29:

score: 0
Accepted
time: 21ms
memory: 3700kb

input:

100000
2C 3C 4C 5C 6C
2C 3C 4C 5C 7C
2C 3C 4C 5C 8C
2C 3C 4C 5C 9C
2C 3C 4C 5C TC
2C 3C 4C 5C JC
2C 3C 4C 5C QC
2C 3C 4C 5C KC
2C 3C 4C 5C AC
2C 3C 4C 6C 5C
2C 3C 4C 6C 7C
2C 3C 4C 6C 8C
2C 3C 4C 6C 9C
2C 3C 4C 6C TC
2C 3C 4C 6C JC
2C 3C 4C 6C QC
2C 3C 4C 6C KC
2C 3C 4C 6C AC
2C 3C 4C 7C 5C
2C 3C 4C...

output:

check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
...

result:

ok 100000 lines

Test #30:

score: 0
Accepted
time: 7ms
memory: 3784kb

input:

54440
TC 7C 2C 4C 5C
TC 7C 2C 4C 6C
TC 7C 2C 4C 8C
TC 7C 2C 4C 9C
TC 7C 2C 4C JC
TC 7C 2C 4C QC
TC 7C 2C 4C KC
TC 7C 2C 4C AC
TC 7C 2C 5C 3C
TC 7C 2C 5C 4C
TC 7C 2C 5C 6C
TC 7C 2C 5C 8C
TC 7C 2C 5C 9C
TC 7C 2C 5C JC
TC 7C 2C 5C QC
TC 7C 2C 5C KC
TC 7C 2C 5C AC
TC 7C 2C 6C 3C
TC 7C 2C 6C 4C
TC 7C 2C ...

output:

check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
check
...

result:

ok 54440 lines