Statistics

Problem Statement for "BaseballLineup"

Problem Statement

Baseball is a sport played on a diamond with three bases, first second and third, and a home plate. Players start at home plate, and attempt to hit a ball and run around all three of the bases in order, and end up back at home plate. If a player gets back to home plate, then a run is scored, and that players leaves the field. There are 6 things that can happen to a player when he attempts to hit the ball:
  1. 1) The player may get an out, in which case the next batter steps up, and the runners on base do not move (unless it is the third out of the inning, see below).
  2. 2) The player may be walked, and end up at first base. If there was a player on first base, that player would advance to second. If there were players on first and second, they would advance to second and third base respectively. If there were players on all three bases, the player on third base would score a run and the players on first and second would advance to second and third base respectively. In other words, when a walk occurs, a player only advances when another player advances to the base he is on. Thus, if there were players on first and third bases, and a player was walked, only the player on first would advance.
  3. 3) The player may hit a single. In this case, the player who hit the ball ends up on first base. If there was a player on first base, that player would advance to second. Each player who was on second or third base would make it to home plate and score a run. (So, if there were players on both second and third, two runs would score.)
  4. 4) The player may hit a double, and end up on second base. Each player who was on base scores a run.
  5. 5) The player may hit a triple, and end up on third base. Each player who was on base scores a run.
  6. 6) The player may hit a home run, in which case he and all of the players on base score runs.
A game of baseball goes 9 innings. Each inning consists of 3 outs (outs have no effect until there are 3 of them in an inning). Players take turns batting in order, starting with player 1 (indexed from 1) in the first inning, and continue to bat until there are 3 outs. Once 3 outs have been made, the inning ends and any runners who were on base are no longer on base. In the next inning, the batting order picks up where it left off. So, if player 4 made the last out in the 3rd inning, then player 5 would bat first in the 4th inning. Furthermore, after player 9 bats, it is then player 1's turn.

Your task is, given the stats of all 9 players on a team, return the expected number of runs that team will score in 9 innings. For each player you will be given a String, formatted as "<outs> <walks> <singles> <doubles> <triples> <homeRuns>". Each term in the String will be an integer representing the number of each event per 1000 appearances. Thus, the sum of all the terms in each String will be 1000. For example, "646 107 141 37 0 69" would indicate that 646/1000 times the players gets out, 107/1000 times the player is walked, 141/1000 times the player gets a single, and so on.

Here is an example of how an inning might go, assuming that player 3 is the first batter of the inning and that we start with 0 runs:
player | action   | outs | runs | runners on
-------+----------+------+------+-----------
 3     | walk     | 0    | 0    | first
 4     | out      | 1    | 0    | first
 5     | double   | 1    | 1    | second
 6     | walk     | 1    | 1    | first and second
 7     | single   | 1    | 2    | first and second
 8     | out      | 2    | 2    | first and second
 9     | home run | 2    | 5    | none
 1     | walk     | 2    | 5    | first
 2     | walk     | 2    | 5    | first and second
 3     | out      | 3    | 5    | 
In the next inning, player 4 would bat first. Note that there would be no one on base at the beginning of the next inning, despite the fact that there were two players on base at the end of this inning.

In order to make things a little simpler, we will only allow 20 batters to hit in a single inning. So, after the 20th batter of an inning hits, the inning ends, regardless of how many outs there are. Thus, if every player hits a home run in every at bat, the team will score 20 runs per inning.

Definition

Class:
BaseballLineup
Method:
expectedRuns
Parameters:
String[]
Returns:
double
Method signature:
double expectedRuns(String[] stats)
(be sure your method is public)

Notes

  • Your result must have absolute or relative error less than 1e-9.

Constraints

  • stats will contain exactly 9 elements.
  • Each element of stats will be formatted as " ".
  • Each of the terms in each element of stats will represent a non-negative integer, with no extra leading 0's.
  • The sum of the integers in each element of stats will be 1000.

Examples

  1. {"652 77 185 53 13 20", "649 58 213 74 1 5", "646 107 141 37 0 69", "650 100 159 55 1 35", "683 64 160 49 3 41", "663 76 184 43 2 32", "712 80 111 63 0 34", "693 99 135 48 2 23", "824 16 112 16 0 32"}

    Returns: 4.799858944836131

    The stats of the Cubs' starting lineup in game 7.

  2. {"1 0 0 0 0 999", "1 0 0 0 0 999", "1 0 0 0 0 999", "1 0 0 0 0 999", "1 0 0 0 0 999", "1 0 0 0 0 999", "1 0 0 0 0 999", "1 0 0 0 0 999", "1 0 0 0 0 999"}

    Returns: 179.81995685471114

    Here, players hit home runs almost every single time. Thus, since there are at most 20 at bats per inning, they are expected to score almost 20 runs per inning, for almost 180 during the whole game.

  3. {"0 0 1000 0 0 0", "0 0 1000 0 0 0", "0 0 1000 0 0 0", "0 0 1000 0 0 0", "0 0 1000 0 0 0", "0 0 1000 0 0 0", "0 0 1000 0 0 0", "0 0 1000 0 0 0", "0 0 1000 0 0 0"}

    Returns: 162.0

  4. {"0 0 0 0 1000 0", "0 1000 0 0 0 0", "1000 0 0 0 0 0", "1000 0 0 0 0 0", "1000 0 0 0 0 0", "1000 0 0 0 0 0", "1000 0 0 0 0 0", "1000 0 0 0 0 0", "1000 0 0 0 0 0"}

    Returns: 0.0

  5. {"0 0 1000 0 0 0", "0 0 1000 0 0 0", "0 0 1000 0 0 0", "0 0 1000 0 0 0", "0 0 1000 0 0 0", "0 0 1000 0 0 0", "0 0 1000 0 0 0", "0 0 1000 0 0 0", "0 0 1000 0 0 0"}

    Returns: 162.0

  6. {"0 0 1000 0 0 0", "0 0 0 1000 0 0", "0 0 1000 0 0 0", "0 0 0 1000 0 0", "0 0 1000 0 0 0", "0 0 0 1000 0 0", "0 0 1000 0 0 0", "0 0 0 1000 0 0", "1000 0 0 0 0 0"}

    Returns: 151.0

  7. { "0 0 1000 0 0 0", "0 0 0 1000 0 0", "0 0 1000 0 0 0", "0 0 0 1000 0 0", "0 0 1000 0 0 0", "0 0 0 1000 0 0", "0 0 1000 0 0 0", "1000 0 0 0 0 0", "1000 0 0 0 0 0"}

    Returns: 89.0

  8. {"0 1000 0 0 0 0","0 0 1000 0 0 0","1000 0 0 0 0 0","0 1000 0 0 0 0","0 0 0 0 1000 0","0 1000 0 0 0 0","0 1000 0 0 0 0","0 0 0 0 1000 0","0 0 1000 0 0 0"}

    Returns: 141.0

  9. {"156 183 154 163 161 183","160 187 178 142 181 152","159 175 174 152 181 159", "167 158 162 157 165 191","165 156 176 172 166 165","159 157 175 159 174 176", "165 155 176 161 160 183","147 159 160 167 186 181","173 177 163 169 170 148"}

    Returns: 106.15983003140279

  10. {"11 319 260 72 147 191","0 129 238 84 236 313","3 244 85 97 275 296","4 268 327 122 89 190","4 68 206 381 341 0","3 145 245 311 44 252","0 194 61 299 240 206","4 281 125 86 212 292","8 314 110 493 9 66"}

    Returns: 169.36453773509572

  11. {"3 225 340 204 191 37","2 197 211 147 211 232","7 0 85 268 631 9","2 252 135 197 237 177","6 377 408 129 30 50","2 140 204 288 214 152","2 239 308 96 119 236","6 81 40 454 362 57","8 85 106 412 262 127"}

    Returns: 168.84609408124192

  12. {"2 186 263 247 39 263","5 149 56 248 145 397","4 134 216 244 220 182","4 220 104 149 374 149","3 109 313 83 188 304","5 254 22 97 216 406","6 10 91 317 370 206","5 257 61 314 182 181","2 192 281 120 124 281"}

    Returns: 170.79246140594842

  13. {"4 50 457 203 193 93","2 27 246 181 259 285","3 260 394 200 45 98","3 194 257 255 29 262","5 131 95 272 262 235","4 115 210 223 224 224","1 120 344 333 66 136","6 194 184 278 149 189","3 349 87 204 212 145"}

    Returns: 169.63920728849013

  14. {"4 191 189 73 379 164","1 17 236 407 134 205","4 431 40 237 92 196","4 280 154 147 166 249","8 320 224 139 95 214","11 55 359 349 146 80","4 336 72 189 265 134","6 368 277 156 159 34","6 230 113 215 182 254"}

    Returns: 168.32293419775252

  15. {"7 146 260 47 400 140","8 74 289 156 211 262","2 28 155 109 357 349","3 128 315 179 350 25","3 172 118 339 147 221","6 457 127 84 147 179","1 286 220 250 97 146","3 221 6 309 247 214","1 305 248 180 75 191"}

    Returns: 169.46005979461043

  16. {"9 458 156 45 130 202","1 305 212 248 100 134","7 292 76 151 474 0","6 295 119 68 372 140","5 189 385 227 124 70","4 179 235 82 295 205","4 41 259 277 110 309","7 295 13 215 188 282","3 190 270 156 209 172"}

    Returns: 168.280596926948

  17. {"7 55 156 186 29 567","2 271 165 156 250 156","6 176 231 0 313 274","3 113 20 355 76 433","6 470 139 10 150 225","4 307 118 12 394 165","7 301 138 355 29 170","3 133 217 131 321 195","3 133 165 160 251 288"}

    Returns: 170.4172330381436

  18. {"8 466 301 137 88 0","4 325 246 344 4 77","5 363 147 305 110 70","2 285 272 261 66 114","2 410 358 41 75 114","3 193 216 170 243 175","8 7 104 440 91 350","2 509 187 138 62 102","4 301 85 26 27 557"}

    Returns: 167.5199116132864

  19. {"4 68 92 524 147 165","2 300 209 140 45 304","6 272 308 3 190 221","4 360 142 259 170 65","8 123 115 119 394 241","1 137 128 156 283 295","2 195 211 188 134 270","5 213 365 119 92 206","4 64 245 425 93 169"}

    Returns: 169.7361757625159

  20. {"11 59 32 590 308 0","5 224 223 17 300 231","4 170 391 48 317 70","5 94 203 220 354 124","2 67 269 190 195 277","3 258 231 284 11 213","5 482 209 141 38 125","3 29 329 305 278 56","6 178 304 217 282 13"}

    Returns: 168.63304692550253

  21. {"7 97 2 418 313 163","5 362 108 129 361 35","6 132 458 224 180 0","5 230 329 369 7 60","6 63 331 255 132 213","4 43 350 216 30 357","11 50 74 159 431 275","4 118 232 274 85 287","3 173 193 344 49 238"}

    Returns: 169.41633313215297

  22. {"6 174 5 365 21 429","8 215 299 177 158 143","8 37 242 11 380 322","4 230 251 348 76 91","6 155 125 109 344 261","4 170 297 279 198 52","5 250 184 210 252 99","2 171 71 251 364 141","4 304 172 215 110 195"}

    Returns: 169.50104613560353

  23. {"1 205 198 191 260 145","13 141 213 14 158 461","8 212 193 511 5 71","4 19 230 232 246 269","5 284 186 55 200 270","10 472 125 88 157 148","6 321 120 222 141 190","3 356 0 304 306 31","3 15 97 432 310 143"}

    Returns: 169.12292034812089

  24. {"5 384 35 32 148 396","9 268 83 120 365 155","7 221 327 41 270 134","4 287 7 250 390 62","3 294 63 139 229 272","3 245 282 67 358 45","2 141 335 179 147 196","4 161 327 272 162 74","6 81 26 323 330 234"}

    Returns: 168.88763314140783

  25. {"6 160 183 299 262 90","7 277 249 365 19 83","6 78 371 248 278 19","6 105 11 87 544 247","1 291 289 84 322 13","4 350 233 152 160 101","6 314 15 276 106 283","2 172 375 383 45 23","2 76 0 173 415 334"}

    Returns: 168.76077493546302

  26. {"2 309 27 17 425 220","4 118 107 262 234 275","3 188 217 175 201 216","4 253 219 131 213 180","2 456 90 324 71 57","5 448 205 34 118 190","5 60 149 188 79 519","7 409 307 77 167 33","8 35 183 83 102 589"}

    Returns: 169.65598484003075

  27. {"7 177 143 193 140 340","5 212 64 394 267 58","7 162 267 142 292 130","5 28 237 242 211 277","5 121 339 0 49 486","2 12 272 240 259 215","6 56 315 15 268 340","7 154 151 139 157 392","6 55 298 22 369 250"}

    Returns: 170.91489177434144

  28. {"4 353 262 138 107 136","5 252 19 114 246 364","5 74 47 239 283 352","4 254 7 364 118 253","6 189 180 213 246 166","8 104 481 42 357 8","5 278 158 321 197 41","3 527 66 9 0 395","5 6 68 459 135 327"}

    Returns: 169.58715237890672

  29. {"6 478 138 171 54 153","1 390 183 47 171 208","6 141 223 293 179 158","4 71 413 164 271 77","6 63 216 349 139 227","6 139 188 9 152 506","2 81 272 195 244 206","2 18 388 377 38 177","3 178 205 483 76 55"}

    Returns: 169.34123378441473

  30. {"3 233 217 194 57 296","1 205 364 55 207 168","3 3 208 253 454 79","3 123 89 274 209 302","5 111 223 50 469 142","5 192 61 313 222 207","5 11 443 204 22 315","2 34 329 350 123 162","4 33 335 181 183 264"}

    Returns: 170.59386704421019

  31. {"3 322 33 198 169 275","4 175 192 275 173 181","5 201 305 184 78 227","4 259 235 61 179 262","7 304 74 300 75 240","5 55 416 412 52 60","2 63 245 258 191 241","4 273 54 476 10 183","6 199 295 384 8 108"}

    Returns: 169.2900258243856

  32. {"4 36 361 61 236 302","4 289 149 57 361 140","4 248 242 191 166 149","5 172 88 189 321 225","12 46 35 470 43 394","2 87 210 268 228 205","5 207 441 149 171 27","7 307 183 185 42 276","2 161 180 280 255 122"}

    Returns: 169.61555444128433

  33. {"1 335 42 209 34 379","3 412 27 128 312 118","4 318 325 189 0 164","4 152 85 543 93 123","4 387 37 185 217 170","5 428 42 144 56 325","4 311 97 122 224 242","6 89 462 89 205 149","10 193 99 316 29 353"}

    Returns: 168.91383662027684

  34. {"5 179 391 147 125 153","4 166 132 261 204 233","2 133 65 325 226 249","6 28 327 524 110 5","4 86 299 278 202 131","4 12 383 323 203 75","4 343 109 278 22 244","3 214 78 140 217 348","2 269 131 119 280 199"}

    Returns: 169.79281239037462

  35. {"2 168 268 9 227 326","4 334 243 45 136 238","3 105 11 309 266 306","5 92 171 122 366 244","7 488 196 70 157 82","3 105 151 458 237 46","4 190 154 103 260 289","4 169 0 243 301 283","0 259 314 323 11 93"}

    Returns: 169.879673423339

  36. {"6 37 74 333 245 305","7 115 155 128 328 267","5 56 15 230 323 371","4 136 208 217 159 276","9 194 287 203 36 271","3 277 123 198 123 276","5 264 67 0 427 237","6 148 178 329 159 180","9 226 86 131 395 153"}

    Returns: 170.59885074244124

  37. {"5 80 304 53 366 192","1 178 216 150 116 339","8 125 292 158 155 262","3 65 152 304 176 300","11 34 151 79 599 126","9 287 10 93 149 452","6 332 328 134 33 167","4 282 272 184 0 258","6 131 274 90 358 141"}

    Returns: 169.85577021415097

  38. {"4 23 126 279 276 292","3 411 246 228 108 4","4 314 382 168 36 96","2 382 111 363 142 0","5 52 289 102 287 265","0 170 140 279 211 200","4 182 167 238 170 239","1 379 254 75 229 62","7 203 574 0 216 0"}

    Returns: 167.99185059810836

  39. {"3 279 355 57 161 145","5 280 121 3 281 310","10 395 0 67 306 222","3 266 187 261 13 270","8 104 462 88 202 136","3 134 23 55 374 411","2 133 285 79 246 255","2 270 172 129 119 308","8 74 105 511 31 271"}

    Returns: 169.95636178296127

  40. {"2 189 166 58 269 316","1 280 104 101 205 309","4 403 276 289 28 0","14 130 259 228 301 68","3 214 162 233 265 123","7 69 116 106 387 315","0 236 173 290 169 132","5 317 198 13 258 209","2 259 313 132 98 196"}

    Returns: 168.89923418111576

  41. {"5 302 135 172 254 132","6 174 163 259 296 102","2 315 49 339 33 262","3 68 390 7 320 212","1 89 190 169 296 255","4 324 330 4 234 104","8 371 68 222 310 21","7 20 87 5 435 446","2 177 213 208 169 231"}

    Returns: 169.56249684073305

  42. {"8 155 353 258 12 214","4 233 180 43 508 32","6 122 99 376 375 22","7 64 303 66 107 453","4 247 193 114 243 199","2 286 223 292 109 88","1 59 288 269 247 136","3 125 260 120 49 443","10 89 180 123 511 87"}

    Returns: 169.6439567109295

  43. {"4 138 365 92 230 171","3 125 260 122 238 252","5 333 34 19 343 266","4 55 251 66 234 390","1 93 158 172 265 311","4 138 291 182 48 337","4 146 185 213 152 300","2 340 35 231 314 78","3 237 238 36 442 44"}

    Returns: 170.2596043925485

  44. {"13 365 32 508 22 60","3 179 407 91 275 45","4 376 52 472 19 77","5 378 103 53 113 348","5 152 85 24 458 276","5 205 291 202 135 162","7 165 181 362 236 49","11 296 375 60 243 15","4 288 274 124 127 183"}

    Returns: 167.33674520246458

  45. {"3 265 295 242 51 144","6 249 147 296 271 31","7 474 396 8 51 64","3 77 259 294 173 194","6 462 115 25 2 390","0 267 116 157 271 189","4 374 81 335 60 146","4 226 39 269 154 308","4 287 384 218 10 97"}

    Returns: 167.82558739333493

  46. {"11 319 279 302 85 4","8 172 12 319 106 383","11 513 153 0 23 300","2 244 188 198 206 162","2 281 267 207 155 88","4 497 47 0 0 452","3 44 176 263 249 265","9 23 128 123 391 326","8 130 309 78 433 42"}

    Returns: 168.88949387648842

  47. {"2 278 215 274 174 57","4 99 77 321 154 345","2 227 273 107 308 83","6 34 310 320 182 148","4 307 347 97 136 109","0 222 149 159 249 221","1 106 271 15 192 415","6 384 0 51 241 318","10 141 72 161 438 178"}

    Returns: 169.79902780763913

  48. {"1 208 316 292 60 123","2 0 236 255 125 382","13 191 113 332 45 306","10 293 242 50 135 270","6 150 315 139 11 379","5 166 160 141 132 396","2 300 145 313 195 45","3 265 245 33 158 296","4 8 368 42 63 515"}

    Returns: 170.47318426359905

  49. {"9 106 443 100 171 171","4 279 223 144 111 239","6 323 99 0 259 313","5 160 268 104 188 275","4 185 174 250 162 225","3 50 302 294 220 131","10 207 223 452 23 85","5 285 87 65 260 298","3 50 250 156 497 44"}

    Returns: 169.22707959195418

  50. {"4 247 195 197 165 192","5 73 252 206 435 29","4 353 145 101 121 276","3 179 304 139 118 257","6 167 304 298 145 80","5 277 23 1 394 300","5 0 262 345 249 139","7 206 228 42 233 284","14 404 341 10 36 195"}

    Returns: 168.70184844900854

  51. {"6 238 396 92 140 128","3 152 296 73 236 240","6 209 254 320 172 39","5 110 31 225 436 193","5 464 100 6 162 263","2 260 214 190 192 142","3 113 239 319 226 100","10 421 75 18 10 466","10 77 26 265 622 0"}

    Returns: 168.7276309268621

  52. {"2 201 258 247 102 190","10 129 286 39 506 30","7 40 291 183 261 218","4 56 267 146 330 197","4 304 29 44 272 347","2 308 227 72 387 4","14 263 284 232 123 84","3 304 128 74 188 303","2 221 292 276 192 17"}

    Returns: 168.46616079844063

  53. {"9 212 241 340 117 81","4 236 158 62 260 280","2 115 297 73 317 196","1 4 265 410 262 58","2 68 181 16 286 447","3 207 291 4 430 65","1 294 173 186 241 105","4 39 149 258 295 255","5 172 56 332 107 328"}

    Returns: 170.263193707116

  54. {"3 75 315 95 370 142","4 231 22 338 81 324","3 93 261 77 229 337","6 255 122 299 168 150","3 251 57 475 131 83","2 243 85 137 282 251","5 364 124 315 117 75","5 186 300 92 329 88","3 227 37 353 96 284"}

    Returns: 169.59011814627362

  55. {"5 264 29 113 220 369","6 454 203 34 192 111","5 6 80 398 108 403","2 149 171 285 141 252","3 78 306 337 189 87","1 185 180 350 172 112","5 104 102 439 39 311","0 202 199 152 184 263","5 266 278 53 214 184"}

    Returns: 170.36318638249625

  56. {"4 71 145 4 412 364","6 153 344 75 136 286","7 127 77 135 408 246","3 167 101 328 247 154","2 178 244 288 219 69","3 96 171 191 277 262","8 150 322 71 393 56","2 517 0 279 138 64","6 129 5 317 446 97"}

    Returns: 169.75509385990355

  57. {"5 94 277 276 212 136","3 141 251 200 3 402","8 201 28 370 322 71","1 213 149 163 384 90","7 58 26 262 170 477","5 141 10 397 136 311","2 229 0 176 468 125","2 145 313 125 83 332","5 264 187 53 300 191"}

    Returns: 170.5999032056483

  58. {"2 268 163 315 57 195","0 117 102 281 311 189","2 224 244 201 125 204","3 108 68 346 172 303","3 299 83 26 263 326","1 160 256 182 117 284","5 42 296 266 88 303","3 335 166 40 121 335","2 132 250 205 126 285"}

    Returns: 170.86199313759468

  59. {"0 65 273 233 188 241","1 130 324 172 269 104","4 211 157 127 225 276","4 317 79 122 300 178","5 292 119 286 186 112","3 145 144 326 167 215","4 186 26 155 408 221","3 417 0 172 68 340","3 241 186 133 191 246"}

    Returns: 169.84787597297097

  60. {"4 210 137 223 216 210","4 315 73 413 164 31","3 231 186 339 234 7","5 359 130 112 92 302","7 435 124 267 43 124","4 313 79 1 309 294","3 147 429 36 128 257","2 43 91 350 227 287","4 414 118 70 258 136"}

    Returns: 168.6282973826042

  61. {"2 262 43 283 114 296","3 192 6 123 312 364","6 229 10 97 353 305","7 98 240 173 419 63","8 102 17 136 165 572","5 3 12 316 292 372","10 7 55 462 322 144","10 536 71 247 25 111","4 90 191 230 223 262"}

    Returns: 170.8110581877146

  62. {"7 128 386 436 33 10","4 140 211 242 141 262","1 287 56 108 124 424","5 338 343 33 148 133","14 37 0 232 412 305","0 257 244 131 196 172","3 105 38 348 117 389","4 266 49 232 225 224","3 67 244 281 164 241"}

    Returns: 170.42240569635032

  63. {"7 203 275 308 116 91","4 110 321 291 31 243","10 274 224 312 49 131","3 308 176 173 310 30","2 304 268 7 179 240","3 0 30 392 206 369","1 157 435 184 197 26","5 333 196 169 198 99","8 20 16 391 380 185"}

    Returns: 169.08630868625477

  64. {"11 218 63 139 281 288","6 93 391 181 200 129","5 199 87 355 127 227","9 126 87 289 204 285","5 239 175 111 218 252","5 204 297 134 273 87","6 278 11 266 272 167","3 277 203 44 160 313","6 198 260 232 105 199"}

    Returns: 169.38378402262634

  65. {"6 211 51 400 59 273","6 83 397 389 94 31","10 412 214 102 213 49","3 240 178 134 181 264","5 145 2 267 287 294","1 160 353 173 61 252","6 281 64 164 423 62","2 73 120 352 287 166","17 73 392 220 107 191"}

    Returns: 169.11187744212998

  66. {"3 192 260 238 160 147","9 27 419 436 0 109","4 243 301 120 161 171","1 256 5 97 298 343","1 109 127 391 169 203","7 86 241 191 151 324","2 249 313 224 86 126","7 157 248 149 215 224","13 226 37 7 185 532"}

    Returns: 169.97216588060166

  67. {"1 316 199 0 168 316","5 134 276 247 104 234","3 79 186 384 18 330","5 261 194 145 310 85","3 40 242 232 346 137","3 136 265 126 212 258","3 458 114 192 38 195","7 324 260 35 295 79","2 256 225 128 290 99"}

    Returns: 169.03695830550782

  68. {"8 393 296 70 225 8","6 311 121 83 316 163","2 10 206 153 348 281","4 31 235 311 317 102","5 78 192 387 129 209","2 95 230 117 114 442","0 142 253 188 108 309","4 312 176 346 34 128","2 159 366 123 238 112"}

    Returns: 169.5730418149706

  69. {"14 440 6 82 394 64","3 198 244 224 219 112","0 185 192 184 212 227","5 139 235 142 188 291","4 357 341 4 285 9","3 121 251 93 286 246","3 394 202 13 7 381","2 247 104 243 203 201","3 156 384 35 316 106"}

    Returns: 168.58474210108372

  70. {"1 198 249 160 156 236","1 71 178 230 288 232","6 4 240 410 154 186","3 329 221 311 85 51","0 201 321 20 337 121","7 47 258 293 115 280","1 452 269 215 53 10","3 311 304 111 145 126","1 231 56 301 128 283"}

    Returns: 169.11887782897497

  71. {"5 323 273 41 89 269","5 173 251 245 115 211","4 293 68 78 393 164","2 229 209 231 165 164","4 40 104 219 111 522","0 61 98 214 362 265","3 160 142 473 185 37","1 186 189 227 192 205","5 573 81 7 182 152"}

    Returns: 169.59976281070033

  72. {"4 201 126 219 299 151","5 47 348 131 108 361","5 50 93 345 275 232","6 260 315 249 92 78","3 210 195 145 45 402","2 463 303 32 163 37","3 37 91 130 376 363","5 155 283 258 226 73","5 327 6 349 53 260"}

    Returns: 169.91767352800193

  73. {"7 295 97 25 341 235","4 172 237 69 277 241","2 304 183 390 109 12","2 208 65 218 304 203","5 93 677 0 96 129","8 234 108 346 8 296","0 291 256 306 2 145","6 124 266 119 137 348","4 147 69 365 201 214"}

    Returns: 169.36894162028517

  74. {"2 297 303 315 20 63","6 286 259 276 140 33","3 321 378 125 173 0","4 290 77 149 223 257","3 191 39 282 246 239","8 293 138 180 204 177","9 102 67 245 267 310","2 261 174 254 218 91","3 173 166 136 328 194"}

    Returns: 168.30374091396888

  75. {"4 177 107 237 253 222","1 154 131 321 216 177","3 260 266 132 208 131","12 0 265 420 51 252","5 342 236 18 115 284","4 182 193 85 437 99","2 279 262 57 178 222","7 89 208 262 118 316","6 16 277 139 223 339"}

    Returns: 169.94346805919955

  76. {"2 336 239 59 151 213","4 270 92 297 230 107","3 38 272 180 197 310","4 178 17 273 324 204","6 431 172 76 288 27","10 111 73 352 213 241","10 40 387 259 236 68","6 403 96 183 266 46","5 347 26 169 168 285"}

    Returns: 168.70911937555906

  77. {"1 7 192 297 276 227","6 95 168 179 313 239","2 70 440 350 18 120","2 214 393 247 22 122","4 321 247 246 100 82","5 37 217 217 320 204","2 137 153 179 285 244","2 355 328 77 15 223","4 245 17 283 54 397"}

    Returns: 169.91507925785953

  78. {"7 596 19 136 82 160","5 179 231 181 323 81","6 297 91 265 204 137","3 281 15 326 243 132","6 355 59 123 400 57","6 110 42 95 435 312","6 57 20 416 496 5","2 241 53 198 270 236","7 324 46 116 207 300"}

    Returns: 168.5497445895014

  79. {"1 436 11 324 40 188","5 325 106 255 92 217","6 297 26 91 234 346","2 236 223 102 193 244","7 178 86 266 439 24","5 335 162 186 168 144","6 56 332 25 328 253","3 287 339 100 99 172","2 172 103 123 273 327"}

    Returns: 169.19910356906504

  80. {"4 213 12 240 347 184","3 280 105 194 276 142","7 23 325 13 409 223","5 254 146 200 295 100","4 287 155 184 5 365","3 262 84 173 156 322","5 169 315 8 277 226","6 267 252 102 54 319","3 152 215 228 168 234"}

    Returns: 169.76812195116204

  81. {"5 42 316 156 280 201","4 40 303 274 87 292","6 188 142 10 421 233","1 309 27 212 177 274","1 191 0 386 89 333","6 231 316 211 190 46","4 168 232 109 188 299","2 153 68 163 452 162","5 56 257 147 232 303"}

    Returns: 170.6281874352758

  82. {"8 157 217 150 374 94","2 224 228 178 97 271","2 380 52 49 358 159","4 416 361 117 91 11","6 186 90 347 222 149","5 292 321 8 139 235","7 255 19 55 266 398","2 134 159 515 120 70","1 116 319 182 323 59"}

    Returns: 168.61184633598228

  83. {"2 229 318 21 248 182","5 289 67 327 312 0","3 229 113 53 352 250","4 328 109 263 115 181","3 239 335 59 215 149","2 260 192 219 172 155","4 159 262 288 138 149","5 201 337 255 35 167","2 243 272 162 79 242"}

    Returns: 168.44721393939196

  84. {"1 213 39 200 245 302","3 338 273 53 89 244","5 289 170 356 131 49","5 122 230 320 107 216","6 4 162 505 309 14","6 168 68 282 167 309","2 276 49 273 324 76","4 165 137 311 56 327","6 326 42 307 262 57"}

    Returns: 169.48706256068397

  85. {"5 90 435 46 415 9","4 274 184 122 315 101","3 216 170 213 229 169","2 20 349 150 341 138","4 88 375 293 59 181","1 202 149 162 170 316","4 249 273 315 4 155","4 183 289 55 289 180","2 258 182 325 4 229"}

    Returns: 169.09280086739645

  86. {"3 330 129 6 307 225","4 290 252 126 148 180","2 83 231 245 213 226","5 310 349 33 98 205","3 139 247 132 224 255","1 34 231 197 304 233","4 398 475 8 59 56","3 145 378 199 98 177","3 152 112 215 235 283"}

    Returns: 169.18402307639903

  87. {"3 249 258 195 228 67","6 178 486 29 152 149","7 304 68 248 63 310","1 145 288 180 99 287","7 7 33 256 307 390","5 233 263 61 255 183","6 55 141 277 306 215","2 120 218 200 213 247","7 401 332 118 142 0"}

    Returns: 169.3204778130914

  88. {"4 186 140 229 323 118","2 269 288 246 175 20","6 411 42 37 160 344","4 176 38 283 153 346","3 358 65 243 135 196","4 115 184 188 247 262","7 513 0 73 106 301","4 108 95 424 361 8","6 213 254 37 311 179"}

    Returns: 169.12118228865424

  89. {"5 210 50 268 398 69","6 11 346 344 176 117","7 214 100 526 55 98","3 224 250 180 107 236","7 301 199 57 279 157","4 200 117 262 201 216","3 283 252 218 244 0","1 170 26 282 482 39","5 124 180 129 255 307"}

    Returns: 169.05669336355376

  90. {"5 346 387 5 61 196","2 271 240 58 283 146","3 121 382 36 399 59","5 322 185 104 241 143","6 172 271 283 238 30","3 243 183 216 307 48","3 326 179 3 182 307","5 238 186 234 101 236","6 80 536 39 194 145"}

    Returns: 167.6286499906398

  91. {"4 278 152 209 267 90","6 170 33 347 308 136","3 145 30 0 429 393","2 169 178 258 218 175","6 15 149 140 340 350","1 278 196 146 66 313","6 437 230 286 12 29","6 80 261 33 223 397","10 229 63 364 13 321"}

    Returns: 170.21725696958782


This problem statement is the exclusive and proprietary property of TopCoder, Inc. Any unauthorized use or reproduction of this information without the prior written consent of TopCoder, Inc. is strictly prohibited. (c)2024, TopCoder, Inc. All rights reserved.
This problem was used for: