Resistors

Calculate resistance of an ASCII art resistor network.
Resistors in series are simply summed, two resistors in parallel reduce to Rtot=(R1*R2)/(R1+R2)
Details here
http://en.wikipedia.org/wiki/Series_and_parallel_circuits
(This should be fairly difficult)

IN

@-|1|--|2|--|3|-@

OUT

6

IN

         /-|100|-\
@-|20|--<         >-@
         \-|100|-/

OUT

70

IN

       /-|30|-\
    /-<        >-\
   /   \-|20|-/   \
@-<                >-@
   \-|5|--|1|-----/

OUT

4

IN

@-|0|-@

OUT

0

IN

       /-|30|-\
    /-<        >-\
   /   \-|20|-/   \
@-<                >-@
   \   /-|24|-\   /
    \-<        >-/
       \-|24|-/

OUT

6

IN

       /-|30|-\
    /-<        >-\
   /   \-|20|-/   \    /-|30|-\
@-<                >--<        >-@
   \   /-|24|-\   /    \-|30|-/
    \-<        >-/
       \-|24|-/

OUT

21

IN

       /-|40|-\
    /-<        >-\
   /   \-|40|-/   \    /-|30|-\
@-<                >--<        >-@
   \   /-|40|-\   /    \-|30|-/
    \-<        >-/
       \-|40|-/

OUT

25

Nice task! :)

Wed Aug 13 11:05:12 2014

Yeah. Nice one :3

Wed Aug 13 13:51:28 2014

Thanks, Glad someone finally solved it. I didn't have time to solve it when I posted it, I might come back to solve it later.

Sun Aug 24 03:00:53 2014


Leave a comment

Parsed as Markdown

Login to leave a comment