| Task: | DNA sequence |
| Sender: | Verto |
| Submission time: | 2016-05-28 11:33:56 +0300 |
| Language: | Python2 |
| Status: | READY |
| Result: | TIME LIMIT EXCEEDED |
| test | verdict | time | |
|---|---|---|---|
| #1 | TIME LIMIT EXCEEDED | -- | 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"
