BFTAB - BF Vector

no tags 

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

hide comments
Jitesh: 2012-03-07 06:42:44

what should be the o/p if n>x

amit kumar: 2012-03-07 06:10:57

not getting problem gys
any hint ...............

Paras Sharma: 2012-03-07 06:04:15

good question, enjoyed coding in BF :D

Mitch Schwartz: 2012-03-01 12:42:55

Ok, sorry for trouble then, wasn't sure what others' opinions would be. Maybe it can be added to SHORTEN.

[Rampage] Blue.Mary: 2012-03-01 10:15:59

Maybe putting into classical is more proper?

Mitch Schwartz: 2012-03-01 01:33:00

It's ok, info is here:

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

Search for "Score is source length".

Marek Kotewicz: 2012-02-27 23:51:05

its first problem i've made... and i dont exactly know how to change score to source code length... be patient :)

Mitch Schwartz: 2012-02-27 23:46:16

As a challenge problem, please change score to source code length, or something of that nature.

Mitch Schwartz: 2012-02-27 23:46:16

Note: Second line is NOT terminated by newline.

Maybe move to challenge? Or tutorial?


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