Submit | All submissions | Best solutions | Back to list |
SBSTR1 - Substring Check (Bug Funny) |
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.
Input
24 lines consisting of pairs of binary strings A and B separated by a single space.
Output
The logical value of: 'B is a substring of A'.
Example
First two lines of input:
1010110010 10110
1110111011 10011
First two lines of output:
1
0
Added by: | adrian |
Date: | 2004-05-01 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | BF ICK WHITESPACE |
hide comments
|
||||||||||||||
2013-04-15 21:35:30 (Tjandra Satria Gunawan)(曾毅昆)
Now you can find more than 40 brainf**k solvable problem on TJANDRA page ;-) |
||||||||||||||
2013-04-12 14:17:55 [Lakshman]
..Now am Trying it in BF.... Last edit: 2013-04-29 16:53:03 |
||||||||||||||
2013-02-21 01:28:05 卢昶舟
I only know Free Pascal and a little C++!!Oh!What a pity! |
||||||||||||||
2012-12-19 17:12:55 C64USER
a simple unix script with awk and grep will do it! |
||||||||||||||
2012-12-18 10:16:57 Abhishek Kandoi
maybe its too easily implemented using c++ |
||||||||||||||
2012-11-29 13:13:27 Jorian
sir,why i am getting compilation error every time. |
||||||||||||||
2012-08-01 05:53:07 garretthh07
I only know c/c++ and java !!oh, what a pity!! |