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
Maneesh Sharma: 2015-02-18 12:57:28

Why such a language restriction ? That is quite discouraging. I realized this after solving the problem when I expanded the language drop down.

re(vamsi): this problem isn't really a problem in other languages. allowing only esoteric languages is what makes it difficult.

Last edit: 2015-02-19 12:50:32
Yiri Wen: 2014-11-06 15:17:01

how could such a problem TLE!

Tomasz Wasilczyk: 2014-10-27 18:40:24

Brainfuck isn't that bad. Actually, I really enjoyed it. :)

The worst part is, that a comment in your code could introduce a bug (if you type a comma etc).

Anubhav Balodhi : 2014-10-23 07:23:53

All those who are trying it in languages other than mentioned, will surely get a wa :-P
I learnt WhiteSpace for it, but still can't solve it. aaaah strings...

Last edit: 2014-10-23 07:24:27
Sachin verma: 2014-10-14 20:21:38

Not a joke seriusly search brainf**k(u know) is actually a language

Shyamnaik Guguloth: 2014-10-13 13:16:45

i am unable to submit my problem and thats running perfectly on my computer

karan: 2014-10-09 20:10:26

BF _/\_

Last edit: 2014-10-09 20:10:43
Govinda: 2014-10-08 08:46:00

in java hardly 10 lines of program

shakaal: 2014-09-27 22:27:05

RIP english

Rishabh Prasad: 2014-09-20 07:33:32

what the hell why cant i submit the code in other language other than those 3 mentioned.????

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