You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Techgig Code Gladiators 2021/open round/virus_outbreak.md
+38Lines changed: 38 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,3 +16,41 @@ The person in question is POSITIVE as B is the subsequence of the V.
16
16
The scientists are busy with their research for medicine and request you to build a program which can quickly figure out if the person is POSITIVE or NEGATIVE. They will provide you with the virus composition V and all the people’s current blood composition. Can you help them?
17
17
18
18
<mark><b>Note</b>: The virus and blood compositions are lowercase alphabet strings.</mark>
19
+
20
+
#### Input Format:
21
+
22
+
The first line of the input consists of the virus composition, V
23
+
24
+
The second line of he input consists of the number of people, N
25
+
26
+
Next N lines each consist of the blood composition of the ith person, Bi
27
+
28
+
#### Constraints:
29
+
30
+
1<= N <=10
31
+
32
+
1<= |B|<= |V|<= 10^5
33
+
34
+
#### Output Format:
35
+
36
+
For each person, print POSITIVE or NEGATIVE in a separate line
0 commit comments