CSES - Datatähti 2018 alku - Results
Submission details
Task:Merkkijono
Sender:_Serinaz_
Submission time:2017-10-11 09:10:08 +0300
Language:Python3
Status:READY
Result:0
Feedback
groupverdictscore
#10
Test results
testverdicttime
#10.08 sdetails
#20.08 sdetails
#30.09 sdetails
#40.08 sdetails
#50.07 sdetails
#60.07 sdetails
#70.06 sdetails
#80.07 sdetails
#90.07 sdetails
#100.07 sdetails

Code

#merkkijono

import numpy




def merkkijono(string):
	lista = []
	merkit = ""
	for i in range (0, len(string)):
		lista.append(string[i])

	for i in range(0, len(lista)+1):
		j=i+1
		viimeinen = i
		for j in range(i, len(lista)):
			if lista[i] == lista[j]:
				viimeinen = j
				print(j)
			else:
				break
			
		if viimeinen - i >0:
			lista[i:viimeinen+1] = []
	
	return ("".join(str(x) for x in lista))

jono = input("")
merkkijono(jono)




Test details

Test 1

Verdict:

input
ABABABABABABABABABABABABABABAB...

correct output
ABABABABABABABABABABABABABABAB...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 3, in <module>
    import numpy
ImportError: No module named 'numpy'

Test 2

Verdict:

input
AABBAABBAABBAABBAABBAABBAABBAA...

correct output
(empty)

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 3, in <module>
    import numpy
ImportError: No module named 'numpy'

Test 3

Verdict:

input
ABABABABABABABABABABABABABABAB...

correct output
(empty)

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 3, in <module>
    import numpy
ImportError: No module named 'numpy'

Test 4

Verdict:

input
BBABABBBBBAABBBABABABBBBAAABAB...

correct output
BAB

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 3, in <module>
    import numpy
ImportError: No module named 'numpy'

Test 5

Verdict:

input
ACDCBBACDBBBACAACBBDBADBAABABA...

correct output
ACDCACDADBADABACACDCADADABABCA...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 3, in <module>
    import numpy
ImportError: No module named 'numpy'

Test 6

Verdict:

input
EETFHIJOGACDHMGVFJCMETMZDEITTR...

correct output
TFHIJOGACDHMGVFJCMETMZDEIROTET...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 3, in <module>
    import numpy
ImportError: No module named 'numpy'

Test 7

Verdict:

input
GOONLAHLYPRFCZKIKSJWAWWYJJPCDB...

correct output
GNLAHLYPRFCZKIKSJWAYPCDNWYMRCE...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 3, in <module>
    import numpy
ImportError: No module named 'numpy'

Test 8

Verdict:

input
PISHWMOTCDDZFRMYMOMYDYYGJZIQHS...

correct output
PISHWMOTCZFRMYMOMYDGJZIQHSVAOK...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 3, in <module>
    import numpy
ImportError: No module named 'numpy'

Test 9

Verdict:

input
QUVVTPXAMWWODFXRONJODPGBTCISGM...

correct output
QUTPXAMODFXRONJODPGBTCISGMVRBW...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 3, in <module>
    import numpy
ImportError: No module named 'numpy'

Test 10

Verdict:

input
POXHAHYEZTLYNFSLABODMRNKDSKROZ...

correct output
POXHAHYEZTLYNFSLABODMRNKDSKROZ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 3, in <module>
    import numpy
ImportError: No module named 'numpy'