BFTAB - BF Vector

Your task is to put in the output nth character of the read input. You have to use BF.

Input

  • First line have x chars (1 <= x <= 99) and ends with a line feed (10)
  • Second line is one number n (00 <= n <= 99)

Output

It's only one character.

Example

Input:
01234567
02

Output:
2
Input:
0112ok3-12kewpl11,2eo12o3ke12ls12w1io2j34e12md
14

Output:
l

Added by:Marek Kotewicz
Date:2012-02-27
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:BF

hide comments
2012-03-07 06:42:44 Jitesh
what should be the o/p if n>x
2012-03-07 06:10:57 amit kumar
not getting problem gys
any hint ...............
2012-03-07 06:04:15 Paras Sharma
good question, enjoyed coding in BF :D
2012-03-01 12:42:55 Mitch Schwartz
Ok, sorry for trouble then, wasn't sure what others' opinions would be. Maybe it can be added to SHORTEN.
2012-03-01 10:15:59 [Rampage] Blue.Mary
Maybe putting into classical is more proper?
2012-03-01 01:33:00 Mitch Schwartz
It's ok, info is here:

http://www.spoj.pl/tutorials/PS/

Search for "Score is source length".
2012-02-27 23:51:05 Marek Kotewicz
its first problem i've made... and i dont exactly know how to change score to source code length... be patient :)
2012-02-27 23:46:16 Mitch Schwartz
As a challenge problem, please change score to source code length, or something of that nature.
2012-02-27 23:46:16 Mitch Schwartz
Note: Second line is NOT terminated by newline.

Maybe move to challenge? Or tutorial?
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.