CSES - Datatähti 2018 alku - Results
Submission details
Task:Merkkijono
Sender:_Serinaz_
Submission time:2017-10-11 09:09:08 +0300
Language:Python3
Status:READY
Result:0
Feedback
groupverdictscore
#10
Test results
testverdicttime
#10.07 sdetails
#20.07 sdetails
#30.09 sdetails
#40.09 sdetails
#50.09 sdetails
#60.12 sdetails
#70.10 sdetails
#80.07 sdetails
#90.08 sdetails
#100.08 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] = []
	
	print ("".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'