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-11 15:30:48100
Task:Merkkijono
Sender:Hege
Submission time:2017-10-11 15:30:48
Language:Python3
Status:READY
Score:100

Feedback

groupverdictscore
#1ACCEPTED

Test results

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

Code

### MERKKIJONO (dt2k18) ###

# a good old way to name functions is to take them from instructions
def uolevin_siirto():
	# fug u pyton 'n ur namespaces, i'll rape u so hard
	global a
	# först we must iter trought string to know where if there is any thing to delete
	for i, c in enumerate(a):
		# we'll catch index error when the last char is compared
		try:
			# this could be ez if pyton haz do-while
			if a[i+1] == c:
				# then we haz a thing that can be deleted, but how long thing?
				# lets run a basic old while loopy thing
				# fug u pyton, even php can leak variables from loops
				# and c 'd make this full loop with only the loop construct?
				pointer = i + 1
				while True:
					# ++i ":)"
					pointer +=1

					if a[pointer] != c:
						break
				# at end we haz to del the explored thing and break
				del(a[i:pointer])
				break
			# else next()
		except IndexError:
			# there is no things to delete!
			# output the result
			print("".join(a))
			# lol
			return "\o/"

# someone said that programs need a main?
def main():
	# lets use this function well :D
	while uolevin_siirto() == None:
		pass

if __name__ == '__main__':
	# now let's use the namespaces well and make some global var from input
	# fug u simplicity, now nobody knows whats happening's :D
	a = ['']
	a.extend(list(input()))
	a.append('')

	# ":D"
	main()

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: ACCEPTED

input
ABABABABABABABABABABABABABABAB...
view   save

correct output
(no output)
view   save

user output
(no output)
view   save

Test 4

Verdict: ACCEPTED

input
BBABABBBBBAABBBABABABBBBAAABAB...
view   save

correct output
BAB
view   save

user output
BAB
view   save

Test 5

Verdict: ACCEPTED

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