CSES - HIIT Open 2016 - Results
Submission details
Task:DNA sequence
Sender:Verto
Submission time:2016-05-28 11:33:56 +0300
Language:Python2
Status:READY
Result:
Test results
testverdicttime
#1--details

Code

import sys
lines = sys.stdin.readlines()
lines = [l.strip() for l in lines]
s = lines[0]
n = int(lines[1])

def is_yes(s,q):
	return q in s

for i in range(2,n+2):
	if is_yes(s, lines[i]):
		print "YES"
	else:
		print "NO"
	

Test details

Test 1

Verdict:

input
ACGCGGGCTCCTAGCGTTAGCAGTTGAGTG...

correct output
YES
YES
NO
NO
YES
...

user output
(empty)