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-10 18:38:420
2017-10-09 17:29:150
2017-10-08 20:55:420
2017-10-08 19:16:220
2017-10-08 13:28:330
2017-10-08 13:27:280
Task:Merkkijono
Sender:JesusIsLife
Submission time:2017-10-10 18:38:42
Language:Python2
Status:READY
Score:0

Feedback

groupverdictscore
#1WRONG ANSWER0

Test results

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

Code

l = list(raw_input().upper())
z = 0
a = 0
y = len(l)
for x in range(0,1000):
  if (z+1) < len(l):
    if l[z] == l[z+1]:
      while l[z] == l[z+1]:
        del l[z]
        if (z+1) == len(l):
          break
      del l[z]
      z = 0
    else:
      z += 1
s = ""
print s.join(l)

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: WRONG ANSWER

input
ABABABABABABABABABABABABABABAB...
view   save

correct output
(no output)
view   save

user output
ABABABABABABABABABABABABABABAB...
view   save

Test 4

Verdict: ACCEPTED

input
BBABABBBBBAABBBABABABBBBAAABAB...
view   save

correct output
BAB
view   save

user output
BAB
view   save

Test 5

Verdict: WRONG ANSWER

input
ACDCBBACDBBBACAACBBDBADBAABABA...
view   save

correct output
ACDCACDADBADABACACDCADADABABCA...
view   save

user output
ACDCACDADBADABACACDCADADABABCA...
view   save

Test 6

Verdict: WRONG ANSWER

input
EETFHIJOGACDHMGVFJCMETMZDEITTR...
view   save

correct output
TFHIJOGACDHMGVFJCMETMZDEIROTET...
view   save

user output
TFHIJOGACDHMGVFJCMETMZDEIROTET...
view   save

Test 7

Verdict: WRONG ANSWER

input
GOONLAHLYPRFCZKIKSJWAWWYJJPCDB...
view   save

correct output
GNLAHLYPRFCZKIKSJWAYPCDNWYMRCE...
view   save

user output
GNLAHLYPRFCZKIKSJWAYPCDNWYMRCE...
view   save

Test 8

Verdict: WRONG ANSWER

input
PISHWMOTCDDZFRMYMOMYDYYGJZIQHS...
view   save

correct output
PISHWMOTCZFRMYMOMYDGJZIQHSVAOK...
view   save

user output
PISHWMOTCZFRMYMOMYDGJZIQHSVAOK...
view   save

Test 9

Verdict: WRONG ANSWER

input
QUVVTPXAMWWODFXRONJODPGBTCISGM...
view   save

correct output
QUTPXAMODFXRONJODPGBTCISGMVRBW...
view   save

user output
QUTPXAMODFXRONJODPGBTCISGMVRBW...
view   save

Test 10

Verdict: WRONG ANSWER

input
POXHAHYEZTLYNFSLABODMRNKDSKROZ...
view   save

correct output
POXHAHYEZTLYNFSLABODMRNKDSKROZ...
view   save

user output
POXHAHYEZTLYNFSLABODMRNKDSKROZ...
view   save