SBSTR1 - Substring Check (Bug Funny)

no tags 

Given two binary strings, A (of length 10) and B (of length 5), output 1 if B is a substring of A and 0 otherwise.

Please note, that the solution may only be submitted in the following languages: Brainf**k, Whitespace and Intercal.


24 lines consisting of pairs of binary strings A and B separated by a single space.


The logical value of: 'B is a substring of A'.


First two lines of input:

1010110010 10110
1110111011 10011

First two lines of output:

hide comments
shadowfax1: 2021-08-01 19:13:32

one line solution for this prob but hmm....

nintachi55: 2021-07-23 21:32:55

are you... sure there are substrings in bf ? or even "strings"
all i know is that there are pointers are they strings that store one character ?

vimal2002: 2021-06-01 14:53:01

why it is giving run time error I am using c++.

botter_code: 2021-05-28 11:41:52

Brainfuck lol

yersonsz117: 2021-05-23 05:25:19

I just solve this with Python 3 :v too ez

vanceter231002: 2021-05-09 13:10:45

does it mean we will only get A of 10 bits and B of 5 bits?

karlo_2107: 2021-03-28 22:04:37


hello_1234: 2021-03-27 13:44:40

Such a hard problem.
BrainF**ck LOL!!

anoopraj46: 2021-03-26 08:53:16

brainfuck is a programming langauge hahaha

mohsehga: 2021-02-23 18:48:05

I am focussing on java so , I am happy to skip this problem. :D

Added by:adrian
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)