>>16
http://codepad.org/inXzk79h
0→ 1 : A / cost:100.000000 total:100.000000
1→ 2 : A / cost:333.333333 total:433.333333
2→ 3 : A / cost:1111.111111 total:1544.444444
3→ 4 : C / cost:2404.444444 total:3948.888889
4→ 5 : B / cost:4681.666667 total:8630.555556
5→ 6 : B / cost:8097.500000 total:16728.055556
6→ 7 : B / cost:13221.250000 total:29949.305556
7→ 8 : B / cost:20906.875000 total:50856.180556
8→ 9 : B / cost:32435.312500 total:83291.493056
9→10 : B / cost:49727.968750 total:133019.461806
10→11 : B / cost:75666.953125 total:208686.414931
11→12 : B / cost:114575.429687 total:323261.844618
豪快に間違ってても責任は取れませんのであしからず