P1 [ ( 1001 - 12 ) * 10 + 100 * 5 + 1,000 * 1 + 50 * 51 ] * 2 = 27,860円
P2 [ ( 1001 - 16 ) * 10 + 100 * 3 + 1,000 * 2 + 50 * 37 ] * 2 = 28,000円
P3 [ ( 1001 - 34 ) * 10 + 100 * 6 + 1,000 * 0 + 50 * 127 ] * 4 = 66,480円
P4 [ ( 1001 - 21 ) * 10 + 100 * 0 + 1,000 * 1 + 50 * 38 ] * 4 = 50,800円
P5 [ ( 1001 - 25 ) * 10 + 100 * 7 + 1,000 * 1 + 50 * 35 ] * 4 = 52,840円
P5まで累計: 225,980円