Code Submission Evaluation System Login

Datatähti 2018 alku

Start:2017-10-02 00:00:00
End:2017-10-16 00:00:00
 

Tasks | Messages | Scoreboard | Statistics


CSES - Datatähti 2018 alku - Results
History
2017-10-04 22:04:590
2017-10-04 12:39:500
2017-10-04 12:35:30
2017-10-04 12:25:040
Task:Merkkijono
Sender:viktor
Submission time:2017-10-04 22:04:59
Language:Python3
Status:READY
Score:0

Feedback

groupverdictscore
#1RUNTIME ERROR0

Test results

testverdicttime (s)
#1ACCEPTED0.07 / 1.00details
#2ACCEPTED0.10 / 1.00details
#3RUNTIME ERROR0.23 / 1.00details
#4WRONG ANSWER0.07 / 1.00details
#5WRONG ANSWER0.08 / 1.00details
#6ACCEPTED0.10 / 1.00details
#7ACCEPTED0.07 / 1.00details
#8ACCEPTED0.11 / 1.00details
#9ACCEPTED0.07 / 1.00details
#10ACCEPTED0.09 / 1.00details

Code

from itertools import groupby
f = lambda s: (lambda k: k if len(k) == len(s) else f(k))("".join(a for a, b in groupby(s) if len(list(b)) == 1))
print(f(input("")))

Test details

Test 1

Verdict: ACCEPTED

input
ABABABABABABABABABABABABABABAB...
view   save

correct output
ABABABABABABABABABABABABABABAB...
view   save

user output
ABABABABABABABABABABABABABABAB...
view   save

Test 2

Verdict: ACCEPTED

input
AABBAABBAABBAABBAABBAABBAABBAA...
view   save

correct output
(no output)
view   save

user output
(no output)
view   save

Test 3

Verdict: RUNTIME ERROR

input
ABABABABABABABABABABABABABABAB...
view   save

correct output
(no output)
view   save

user output
(no output)
view   save

Error:
Traceback (most recent call last):
  File "input/code.py", line 3, in <module>
    print(f(input("")))
  File "input/code.py", line 2, in <lambda>
    f = lambda s: (lambda k: k if len(k) == len(s) else f(k))("".join(a for a, b in groupby(s) if len(list(b)) == 1))
  File "input/code.py", line 2, in <lambda>
    f = lambda s: (lambda k: k if len(k) == len(s) else f(k))("".join(a for a, b in groupby(s) if len(list(b)) == 1))
  File "input/code.py", line 2, in <lambda>
    f = lambda s: (lambda k: k if len(k) == len(s) else f(k))("".join(a for a, b in groupby(s) if len(list(b)) == 1))
  File "input/code.py", line 2, in <lambda>
    f = lambda s: (lambda k: k if len(k) == len(s) else f(k))("".join(a for a, b in groupby(s) if len(list(b)) == 1))
  File "input/code.py", line 2, in <lambda>
    f = lambda s: (lambda k: k if len(k) == len(s) else f(k))("".join(a for a, b in groupby(s) if len(list(b)) == 1))
  File "input/code.py", line 2, in <lambda>
    f = lambda s: (lambda k: k if len(k) ==

Test 4

Verdict: WRONG ANSWER

input
BBABABBBBBAABBBABABABBBBAAABAB...
view   save

correct output
BAB
view   save

user output
ABA
view   save

Test 5

Verdict: WRONG ANSWER

input
ACDCBBACDBBBACAACBBDBADBAABABA...
view   save

correct output
ACDCACDADBADABACACDCADADABABCA...
view   save

user output
ACDCACDADBADABACACDCADADABABCA...
view   save

Test 6

Verdict: ACCEPTED

input
EETFHIJOGACDHMGVFJCMETMZDEITTR...
view   save

correct output
TFHIJOGACDHMGVFJCMETMZDEIROTET...
view   save

user output
TFHIJOGACDHMGVFJCMETMZDEIROTET...
view   save

Test 7

Verdict: ACCEPTED

input
GOONLAHLYPRFCZKIKSJWAWWYJJPCDB...
view   save

correct output
GNLAHLYPRFCZKIKSJWAYPCDNWYMRCE...
view   save

user output
GNLAHLYPRFCZKIKSJWAYPCDNWYMRCE...
view   save

Test 8

Verdict: ACCEPTED

input
PISHWMOTCDDZFRMYMOMYDYYGJZIQHS...
view   save

correct output
PISHWMOTCZFRMYMOMYDGJZIQHSVAOK...
view   save

user output
PISHWMOTCZFRMYMOMYDGJZIQHSVAOK...
view   save

Test 9

Verdict: ACCEPTED

input
QUVVTPXAMWWODFXRONJODPGBTCISGM...
view   save

correct output
QUTPXAMODFXRONJODPGBTCISGMVRBW...
view   save

user output
QUTPXAMODFXRONJODPGBTCISGMVRBW...
view   save

Test 10

Verdict: ACCEPTED

input
POXHAHYEZTLYNFSLABODMRNKDSKROZ...
view   save

correct output
POXHAHYEZTLYNFSLABODMRNKDSKROZ...
view   save

user output
POXHAHYEZTLYNFSLABODMRNKDSKROZ...
view   save