358 - Don't Have A Cow

All about problems in Volume 3. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

serur
A great helper
Posts: 251
Joined: Thu Feb 23, 2006 11:30 pm

Post by serur »

Hi daveon!

thank you fro reply.
But, it's a matter of principle :wink: - I want to know why MY formula isn't correct.
If there is ever a war between men and machines, it is easy to guess who will start it (c) Arthur Clarke

daveon
Experienced poster
Posts: 229
Joined: Tue Aug 31, 2004 2:41 am
Location: TORONTO, CANADA

Post by daveon »

How did you derived your formula?

daveon
Experienced poster
Posts: 229
Joined: Tue Aug 31, 2004 2:41 am
Location: TORONTO, CANADA

Post by daveon »

Hi,

Code: Select all


input:
501
1000 0.000
1000 0.001
1000 0.002
1000 0.003
1000 0.004
1000 0.005
1000 0.006
1000 0.007
1000 0.008
1000 0.009
1000 0.010
1000 0.011
1000 0.012
1000 0.013
1000 0.014
1000 0.015
1000 0.016
1000 0.017
1000 0.018
1000 0.019
1000 0.020
1000 0.021
1000 0.022
1000 0.023
1000 0.024
1000 0.025
1000 0.026
1000 0.027
1000 0.028
1000 0.029
1000 0.030
1000 0.031
1000 0.032
1000 0.033
1000 0.034
1000 0.035
1000 0.036
1000 0.037
1000 0.038
1000 0.039
1000 0.040
1000 0.041
1000 0.042
1000 0.043
1000 0.044
1000 0.045
1000 0.046
1000 0.047
1000 0.048
1000 0.049
1000 0.050
1000 0.051
1000 0.052
1000 0.053
1000 0.054
1000 0.055
1000 0.056
1000 0.057
1000 0.058
1000 0.059
1000 0.060
1000 0.061
1000 0.062
1000 0.063
1000 0.064
1000 0.065
1000 0.066
1000 0.067
1000 0.068
1000 0.069
1000 0.070
1000 0.071
1000 0.072
1000 0.073
1000 0.074
1000 0.075
1000 0.076
1000 0.077
1000 0.078
1000 0.079
1000 0.080
1000 0.081
1000 0.082
1000 0.083
1000 0.084
1000 0.085
1000 0.086
1000 0.087
1000 0.088
1000 0.089
1000 0.090
1000 0.091
1000 0.092
1000 0.093
1000 0.094
1000 0.095
1000 0.096
1000 0.097
1000 0.098
1000 0.099
1000 0.100
1000 0.101
1000 0.102
1000 0.103
1000 0.104
1000 0.105
1000 0.106
1000 0.107
1000 0.108
1000 0.109
1000 0.110
1000 0.111
1000 0.112
1000 0.113
1000 0.114
1000 0.115
1000 0.116
1000 0.117
1000 0.118
1000 0.119
1000 0.120
1000 0.121
1000 0.122
1000 0.123
1000 0.124
1000 0.125
1000 0.126
1000 0.127
1000 0.128
1000 0.129
1000 0.130
1000 0.131
1000 0.132
1000 0.133
1000 0.134
1000 0.135
1000 0.136
1000 0.137
1000 0.138
1000 0.139
1000 0.140
1000 0.141
1000 0.142
1000 0.143
1000 0.144
1000 0.145
1000 0.146
1000 0.147
1000 0.148
1000 0.149
1000 0.150
1000 0.151
1000 0.152
1000 0.153
1000 0.154
1000 0.155
1000 0.156
1000 0.157
1000 0.158
1000 0.159
1000 0.160
1000 0.161
1000 0.162
1000 0.163
1000 0.164
1000 0.165
1000 0.166
1000 0.167
1000 0.168
1000 0.169
1000 0.170
1000 0.171
1000 0.172
1000 0.173
1000 0.174
1000 0.175
1000 0.176
1000 0.177
1000 0.178
1000 0.179
1000 0.180
1000 0.181
1000 0.182
1000 0.183
1000 0.184
1000 0.185
1000 0.186
1000 0.187
1000 0.188
1000 0.189
1000 0.190
1000 0.191
1000 0.192
1000 0.193
1000 0.194
1000 0.195
1000 0.196
1000 0.197
1000 0.198
1000 0.199
1000 0.200
1000 0.201
1000 0.202
1000 0.203
1000 0.204
1000 0.205
1000 0.206
1000 0.207
1000 0.208
1000 0.209
1000 0.210
1000 0.211
1000 0.212
1000 0.213
1000 0.214
1000 0.215
1000 0.216
1000 0.217
1000 0.218
1000 0.219
1000 0.220
1000 0.221
1000 0.222
1000 0.223
1000 0.224
1000 0.225
1000 0.226
1000 0.227
1000 0.228
1000 0.229
1000 0.230
1000 0.231
1000 0.232
1000 0.233
1000 0.234
1000 0.235
1000 0.236
1000 0.237
1000 0.238
1000 0.239
1000 0.240
1000 0.241
1000 0.242
1000 0.243
1000 0.244
1000 0.245
1000 0.246
1000 0.247
1000 0.248
1000 0.249
1000 0.250
1000 0.251
1000 0.252
1000 0.253
1000 0.254
1000 0.255
1000 0.256
1000 0.257
1000 0.258
1000 0.259
1000 0.260
1000 0.261
1000 0.262
1000 0.263
1000 0.264
1000 0.265
1000 0.266
1000 0.267
1000 0.268
1000 0.269
1000 0.270
1000 0.271
1000 0.272
1000 0.273
1000 0.274
1000 0.275
1000 0.276
1000 0.277
1000 0.278
1000 0.279
1000 0.280
1000 0.281
1000 0.282
1000 0.283
1000 0.284
1000 0.285
1000 0.286
1000 0.287
1000 0.288
1000 0.289
1000 0.290
1000 0.291
1000 0.292
1000 0.293
1000 0.294
1000 0.295
1000 0.296
1000 0.297
1000 0.298
1000 0.299
1000 0.300
1000 0.301
1000 0.302
1000 0.303
1000 0.304
1000 0.305
1000 0.306
1000 0.307
1000 0.308
1000 0.309
1000 0.310
1000 0.311
1000 0.312
1000 0.313
1000 0.314
1000 0.315
1000 0.316
1000 0.317
1000 0.318
1000 0.319
1000 0.320
1000 0.321
1000 0.322
1000 0.323
1000 0.324
1000 0.325
1000 0.326
1000 0.327
1000 0.328
1000 0.329
1000 0.330
1000 0.331
1000 0.332
1000 0.333
1000 0.334
1000 0.335
1000 0.336
1000 0.337
1000 0.338
1000 0.339
1000 0.340
1000 0.341
1000 0.342
1000 0.343
1000 0.344
1000 0.345
1000 0.346
1000 0.347
1000 0.348
1000 0.349
1000 0.350
1000 0.351
1000 0.352
1000 0.353
1000 0.354
1000 0.355
1000 0.356
1000 0.357
1000 0.358
1000 0.359
1000 0.360
1000 0.361
1000 0.362
1000 0.363
1000 0.364
1000 0.365
1000 0.366
1000 0.367
1000 0.368
1000 0.369
1000 0.370
1000 0.371
1000 0.372
1000 0.373
1000 0.374
1000 0.375
1000 0.376
1000 0.377
1000 0.378
1000 0.379
1000 0.380
1000 0.381
1000 0.382
1000 0.383
1000 0.384
1000 0.385
1000 0.386
1000 0.387
1000 0.388
1000 0.389
1000 0.390
1000 0.391
1000 0.392
1000 0.393
1000 0.394
1000 0.395
1000 0.396
1000 0.397
1000 0.398
1000 0.399
1000 0.400
1000 0.401
1000 0.402
1000 0.403
1000 0.404
1000 0.405
1000 0.406
1000 0.407
1000 0.408
1000 0.409
1000 0.410
1000 0.411
1000 0.412
1000 0.413
1000 0.414
1000 0.415
1000 0.416
1000 0.417
1000 0.418
1000 0.419
1000 0.420
1000 0.421
1000 0.422
1000 0.423
1000 0.424
1000 0.425
1000 0.426
1000 0.427
1000 0.428
1000 0.429
1000 0.430
1000 0.431
1000 0.432
1000 0.433
1000 0.434
1000 0.435
1000 0.436
1000 0.437
1000 0.438
1000 0.439
1000 0.440
1000 0.441
1000 0.442
1000 0.443
1000 0.444
1000 0.445
1000 0.446
1000 0.447
1000 0.448
1000 0.449
1000 0.450
1000 0.451
1000 0.452
1000 0.453
1000 0.454
1000 0.455
1000 0.456
1000 0.457
1000 0.458
1000 0.459
1000 0.460
1000 0.461
1000 0.462
1000 0.463
1000 0.464
1000 0.465
1000 0.466
1000 0.467
1000 0.468
1000 0.469
1000 0.470
1000 0.471
1000 0.472
1000 0.473
1000 0.474
1000 0.475
1000 0.476
1000 0.477
1000 0.478
1000 0.479
1000 0.480
1000 0.481
1000 0.482
1000 0.483
1000 0.484
1000 0.485
1000 0.486
1000 0.487
1000 0.488
1000 0.489
1000 0.490
1000 0.491
1000 0.492
1000 0.493
1000 0.494
1000 0.495
1000 0.496
1000 0.497
1000 0.498
1000 0.499
1000 0.500

output:
R = 1000, P = 0.00, Rope = 0.00

R = 1000, P = 0.00, Rope = 44.94

R = 1000, P = 0.00, Rope = 63.68

R = 1000, P = 0.00, Rope = 78.11

R = 1000, P = 0.00, Rope = 90.31

R = 1000, P = 0.01, Rope = 101.09

R = 1000, P = 0.01, Rope = 110.86

R = 1000, P = 0.01, Rope = 119.86

R = 1000, P = 0.01, Rope = 128.25

R = 1000, P = 0.01, Rope = 136.15

R = 1000, P = 0.01, Rope = 143.63

R = 1000, P = 0.01, Rope = 150.76

R = 1000, P = 0.01, Rope = 157.58

R = 1000, P = 0.01, Rope = 164.13

R = 1000, P = 0.01, Rope = 170.45

R = 1000, P = 0.01, Rope = 176.55

R = 1000, P = 0.02, Rope = 182.46

R = 1000, P = 0.02, Rope = 188.19

R = 1000, P = 0.02, Rope = 193.77

R = 1000, P = 0.02, Rope = 199.20

R = 1000, P = 0.02, Rope = 204.49

R = 1000, P = 0.02, Rope = 209.66

R = 1000, P = 0.02, Rope = 214.72

R = 1000, P = 0.02, Rope = 219.66

R = 1000, P = 0.02, Rope = 224.51

R = 1000, P = 0.03, Rope = 229.26

R = 1000, P = 0.03, Rope = 233.92

R = 1000, P = 0.03, Rope = 238.50

R = 1000, P = 0.03, Rope = 243.00

R = 1000, P = 0.03, Rope = 247.43

R = 1000, P = 0.03, Rope = 251.78

R = 1000, P = 0.03, Rope = 256.06

R = 1000, P = 0.03, Rope = 260.29

R = 1000, P = 0.03, Rope = 264.45

R = 1000, P = 0.03, Rope = 268.55

R = 1000, P = 0.04, Rope = 272.59

R = 1000, P = 0.04, Rope = 276.58

R = 1000, P = 0.04, Rope = 280.52

R = 1000, P = 0.04, Rope = 284.42

R = 1000, P = 0.04, Rope = 288.26

R = 1000, P = 0.04, Rope = 292.06

R = 1000, P = 0.04, Rope = 295.81

R = 1000, P = 0.04, Rope = 299.52

R = 1000, P = 0.04, Rope = 303.20

R = 1000, P = 0.04, Rope = 306.83

R = 1000, P = 0.04, Rope = 310.42

R = 1000, P = 0.05, Rope = 313.98

R = 1000, P = 0.05, Rope = 317.50

R = 1000, P = 0.05, Rope = 320.99

R = 1000, P = 0.05, Rope = 324.45

R = 1000, P = 0.05, Rope = 327.87

R = 1000, P = 0.05, Rope = 331.26

R = 1000, P = 0.05, Rope = 334.62

R = 1000, P = 0.05, Rope = 337.96

R = 1000, P = 0.05, Rope = 341.26

R = 1000, P = 0.06, Rope = 344.54

R = 1000, P = 0.06, Rope = 347.78

R = 1000, P = 0.06, Rope = 351.01

R = 1000, P = 0.06, Rope = 354.20

R = 1000, P = 0.06, Rope = 357.37

R = 1000, P = 0.06, Rope = 360.52

R = 1000, P = 0.06, Rope = 363.65

R = 1000, P = 0.06, Rope = 366.75

R = 1000, P = 0.06, Rope = 369.83

R = 1000, P = 0.06, Rope = 372.88

R = 1000, P = 0.07, Rope = 375.92

R = 1000, P = 0.07, Rope = 378.93

R = 1000, P = 0.07, Rope = 381.92

R = 1000, P = 0.07, Rope = 384.90

R = 1000, P = 0.07, Rope = 387.85

R = 1000, P = 0.07, Rope = 390.78

R = 1000, P = 0.07, Rope = 393.70

R = 1000, P = 0.07, Rope = 396.60

R = 1000, P = 0.07, Rope = 399.48

R = 1000, P = 0.07, Rope = 402.34

R = 1000, P = 0.07, Rope = 405.18

R = 1000, P = 0.08, Rope = 408.01

R = 1000, P = 0.08, Rope = 410.82

R = 1000, P = 0.08, Rope = 413.62

R = 1000, P = 0.08, Rope = 416.40

R = 1000, P = 0.08, Rope = 419.16

R = 1000, P = 0.08, Rope = 421.91

R = 1000, P = 0.08, Rope = 424.65

R = 1000, P = 0.08, Rope = 427.36

R = 1000, P = 0.08, Rope = 430.07

R = 1000, P = 0.09, Rope = 432.76

R = 1000, P = 0.09, Rope = 435.44

R = 1000, P = 0.09, Rope = 438.10

R = 1000, P = 0.09, Rope = 440.75

R = 1000, P = 0.09, Rope = 443.38

R = 1000, P = 0.09, Rope = 446.01

R = 1000, P = 0.09, Rope = 448.62

R = 1000, P = 0.09, Rope = 451.22

R = 1000, P = 0.09, Rope = 453.80

R = 1000, P = 0.09, Rope = 456.37

R = 1000, P = 0.10, Rope = 458.94

R = 1000, P = 0.10, Rope = 461.49

R = 1000, P = 0.10, Rope = 464.02

R = 1000, P = 0.10, Rope = 466.55

R = 1000, P = 0.10, Rope = 469.07

R = 1000, P = 0.10, Rope = 471.57

R = 1000, P = 0.10, Rope = 474.07

R = 1000, P = 0.10, Rope = 476.55

R = 1000, P = 0.10, Rope = 479.02

R = 1000, P = 0.10, Rope = 481.48

R = 1000, P = 0.10, Rope = 483.94

R = 1000, P = 0.11, Rope = 486.38

R = 1000, P = 0.11, Rope = 488.81

R = 1000, P = 0.11, Rope = 491.23

R = 1000, P = 0.11, Rope = 493.65

R = 1000, P = 0.11, Rope = 496.05

R = 1000, P = 0.11, Rope = 498.44

R = 1000, P = 0.11, Rope = 500.83

R = 1000, P = 0.11, Rope = 503.20

R = 1000, P = 0.11, Rope = 505.57

R = 1000, P = 0.12, Rope = 507.93

R = 1000, P = 0.12, Rope = 510.28

R = 1000, P = 0.12, Rope = 512.62

R = 1000, P = 0.12, Rope = 514.95

R = 1000, P = 0.12, Rope = 517.27

R = 1000, P = 0.12, Rope = 519.59

R = 1000, P = 0.12, Rope = 521.90

R = 1000, P = 0.12, Rope = 524.20

R = 1000, P = 0.12, Rope = 526.49

R = 1000, P = 0.12, Rope = 528.77

R = 1000, P = 0.12, Rope = 531.05

R = 1000, P = 0.13, Rope = 533.31

R = 1000, P = 0.13, Rope = 535.57

R = 1000, P = 0.13, Rope = 537.83

R = 1000, P = 0.13, Rope = 540.07

R = 1000, P = 0.13, Rope = 542.31

R = 1000, P = 0.13, Rope = 544.54

R = 1000, P = 0.13, Rope = 546.77

R = 1000, P = 0.13, Rope = 548.98

R = 1000, P = 0.13, Rope = 551.19

R = 1000, P = 0.14, Rope = 553.39

R = 1000, P = 0.14, Rope = 555.59

R = 1000, P = 0.14, Rope = 557.78

R = 1000, P = 0.14, Rope = 559.96

R = 1000, P = 0.14, Rope = 562.14

R = 1000, P = 0.14, Rope = 564.31

R = 1000, P = 0.14, Rope = 566.47

R = 1000, P = 0.14, Rope = 568.63

R = 1000, P = 0.14, Rope = 570.78

R = 1000, P = 0.14, Rope = 572.93

R = 1000, P = 0.14, Rope = 575.06

R = 1000, P = 0.15, Rope = 577.20

R = 1000, P = 0.15, Rope = 579.32

R = 1000, P = 0.15, Rope = 581.44

R = 1000, P = 0.15, Rope = 583.56

R = 1000, P = 0.15, Rope = 585.67

R = 1000, P = 0.15, Rope = 587.77

R = 1000, P = 0.15, Rope = 589.87

R = 1000, P = 0.15, Rope = 591.96

R = 1000, P = 0.15, Rope = 594.04

R = 1000, P = 0.15, Rope = 596.13

R = 1000, P = 0.16, Rope = 598.20

R = 1000, P = 0.16, Rope = 600.27

R = 1000, P = 0.16, Rope = 602.33

R = 1000, P = 0.16, Rope = 604.39

R = 1000, P = 0.16, Rope = 606.45

R = 1000, P = 0.16, Rope = 608.50

R = 1000, P = 0.16, Rope = 610.54

R = 1000, P = 0.16, Rope = 612.58

R = 1000, P = 0.16, Rope = 614.61

R = 1000, P = 0.17, Rope = 616.64

R = 1000, P = 0.17, Rope = 618.66

R = 1000, P = 0.17, Rope = 620.68

R = 1000, P = 0.17, Rope = 622.70

R = 1000, P = 0.17, Rope = 624.70

R = 1000, P = 0.17, Rope = 626.71

R = 1000, P = 0.17, Rope = 628.71

R = 1000, P = 0.17, Rope = 630.70

R = 1000, P = 0.17, Rope = 632.69

R = 1000, P = 0.17, Rope = 634.68

R = 1000, P = 0.17, Rope = 636.66

R = 1000, P = 0.18, Rope = 638.64

R = 1000, P = 0.18, Rope = 640.61

R = 1000, P = 0.18, Rope = 642.58

R = 1000, P = 0.18, Rope = 644.54

R = 1000, P = 0.18, Rope = 646.50

R = 1000, P = 0.18, Rope = 648.45

R = 1000, P = 0.18, Rope = 650.40

R = 1000, P = 0.18, Rope = 652.35

R = 1000, P = 0.18, Rope = 654.29

R = 1000, P = 0.18, Rope = 656.23

R = 1000, P = 0.19, Rope = 658.16

R = 1000, P = 0.19, Rope = 660.09

R = 1000, P = 0.19, Rope = 662.02

R = 1000, P = 0.19, Rope = 663.94

R = 1000, P = 0.19, Rope = 665.86

R = 1000, P = 0.19, Rope = 667.77

R = 1000, P = 0.19, Rope = 669.68

R = 1000, P = 0.19, Rope = 671.59

R = 1000, P = 0.19, Rope = 673.49

R = 1000, P = 0.20, Rope = 675.39

R = 1000, P = 0.20, Rope = 677.28

R = 1000, P = 0.20, Rope = 679.17

R = 1000, P = 0.20, Rope = 681.06

R = 1000, P = 0.20, Rope = 682.95

R = 1000, P = 0.20, Rope = 684.83

R = 1000, P = 0.20, Rope = 686.70

R = 1000, P = 0.20, Rope = 688.57

R = 1000, P = 0.20, Rope = 690.44

R = 1000, P = 0.20, Rope = 692.31

R = 1000, P = 0.20, Rope = 694.17

R = 1000, P = 0.21, Rope = 696.03

R = 1000, P = 0.21, Rope = 697.88

R = 1000, P = 0.21, Rope = 699.74

R = 1000, P = 0.21, Rope = 701.59

R = 1000, P = 0.21, Rope = 703.43

R = 1000, P = 0.21, Rope = 705.27

R = 1000, P = 0.21, Rope = 707.11

R = 1000, P = 0.21, Rope = 708.95

R = 1000, P = 0.21, Rope = 710.78

R = 1000, P = 0.21, Rope = 712.61

R = 1000, P = 0.22, Rope = 714.43

R = 1000, P = 0.22, Rope = 716.25

R = 1000, P = 0.22, Rope = 718.07

R = 1000, P = 0.22, Rope = 719.89

R = 1000, P = 0.22, Rope = 721.70

R = 1000, P = 0.22, Rope = 723.51

R = 1000, P = 0.22, Rope = 725.32

R = 1000, P = 0.22, Rope = 727.12

R = 1000, P = 0.22, Rope = 728.92

R = 1000, P = 0.23, Rope = 730.72

R = 1000, P = 0.23, Rope = 732.51

R = 1000, P = 0.23, Rope = 734.31

R = 1000, P = 0.23, Rope = 736.10

R = 1000, P = 0.23, Rope = 737.88

R = 1000, P = 0.23, Rope = 739.66

R = 1000, P = 0.23, Rope = 741.44

R = 1000, P = 0.23, Rope = 743.22

R = 1000, P = 0.23, Rope = 745.00

R = 1000, P = 0.23, Rope = 746.77

R = 1000, P = 0.23, Rope = 748.54

R = 1000, P = 0.24, Rope = 750.30

R = 1000, P = 0.24, Rope = 752.07

R = 1000, P = 0.24, Rope = 753.83

R = 1000, P = 0.24, Rope = 755.59

R = 1000, P = 0.24, Rope = 757.34

R = 1000, P = 0.24, Rope = 759.09

R = 1000, P = 0.24, Rope = 760.84

R = 1000, P = 0.24, Rope = 762.59

R = 1000, P = 0.24, Rope = 764.34

R = 1000, P = 0.24, Rope = 766.08

R = 1000, P = 0.25, Rope = 767.82

R = 1000, P = 0.25, Rope = 769.56

R = 1000, P = 0.25, Rope = 771.29

R = 1000, P = 0.25, Rope = 773.02

R = 1000, P = 0.25, Rope = 774.75

R = 1000, P = 0.25, Rope = 776.48

R = 1000, P = 0.25, Rope = 778.20

R = 1000, P = 0.25, Rope = 779.93

R = 1000, P = 0.25, Rope = 781.65

R = 1000, P = 0.26, Rope = 783.36

R = 1000, P = 0.26, Rope = 785.08

R = 1000, P = 0.26, Rope = 786.79

R = 1000, P = 0.26, Rope = 788.50

R = 1000, P = 0.26, Rope = 790.21

R = 1000, P = 0.26, Rope = 791.92

R = 1000, P = 0.26, Rope = 793.62

R = 1000, P = 0.26, Rope = 795.32

R = 1000, P = 0.26, Rope = 797.02

R = 1000, P = 0.26, Rope = 798.72

R = 1000, P = 0.27, Rope = 800.41

R = 1000, P = 0.27, Rope = 802.10

R = 1000, P = 0.27, Rope = 803.79

R = 1000, P = 0.27, Rope = 805.48

R = 1000, P = 0.27, Rope = 807.17

R = 1000, P = 0.27, Rope = 808.85

R = 1000, P = 0.27, Rope = 810.53

R = 1000, P = 0.27, Rope = 812.21

R = 1000, P = 0.27, Rope = 813.89

R = 1000, P = 0.27, Rope = 815.56

R = 1000, P = 0.28, Rope = 817.23

R = 1000, P = 0.28, Rope = 818.90

R = 1000, P = 0.28, Rope = 820.57

R = 1000, P = 0.28, Rope = 822.24

R = 1000, P = 0.28, Rope = 823.90

R = 1000, P = 0.28, Rope = 825.56

R = 1000, P = 0.28, Rope = 827.23

R = 1000, P = 0.28, Rope = 828.88

R = 1000, P = 0.28, Rope = 830.54

R = 1000, P = 0.28, Rope = 832.19

R = 1000, P = 0.28, Rope = 833.85

R = 1000, P = 0.29, Rope = 835.50

R = 1000, P = 0.29, Rope = 837.15

R = 1000, P = 0.29, Rope = 838.79

R = 1000, P = 0.29, Rope = 840.44

R = 1000, P = 0.29, Rope = 842.08

R = 1000, P = 0.29, Rope = 843.72

R = 1000, P = 0.29, Rope = 845.36

R = 1000, P = 0.29, Rope = 847.00

R = 1000, P = 0.29, Rope = 848.63

R = 1000, P = 0.29, Rope = 850.26

R = 1000, P = 0.30, Rope = 851.90

R = 1000, P = 0.30, Rope = 853.53

R = 1000, P = 0.30, Rope = 855.15

R = 1000, P = 0.30, Rope = 856.78

R = 1000, P = 0.30, Rope = 858.40

R = 1000, P = 0.30, Rope = 860.03

R = 1000, P = 0.30, Rope = 861.65

R = 1000, P = 0.30, Rope = 863.27

R = 1000, P = 0.30, Rope = 864.88

R = 1000, P = 0.30, Rope = 866.50

R = 1000, P = 0.31, Rope = 868.11

R = 1000, P = 0.31, Rope = 869.73

R = 1000, P = 0.31, Rope = 871.34

R = 1000, P = 0.31, Rope = 872.94

R = 1000, P = 0.31, Rope = 874.55

R = 1000, P = 0.31, Rope = 876.16

R = 1000, P = 0.31, Rope = 877.76

R = 1000, P = 0.31, Rope = 879.36

R = 1000, P = 0.31, Rope = 880.96

R = 1000, P = 0.32, Rope = 882.56

R = 1000, P = 0.32, Rope = 884.16

R = 1000, P = 0.32, Rope = 885.75

R = 1000, P = 0.32, Rope = 887.35

R = 1000, P = 0.32, Rope = 888.94

R = 1000, P = 0.32, Rope = 890.53

R = 1000, P = 0.32, Rope = 892.12

R = 1000, P = 0.32, Rope = 893.71

R = 1000, P = 0.32, Rope = 895.30

R = 1000, P = 0.32, Rope = 896.88

R = 1000, P = 0.33, Rope = 898.46

R = 1000, P = 0.33, Rope = 900.04

R = 1000, P = 0.33, Rope = 901.62

R = 1000, P = 0.33, Rope = 903.20

R = 1000, P = 0.33, Rope = 904.78

R = 1000, P = 0.33, Rope = 906.36

R = 1000, P = 0.33, Rope = 907.93

R = 1000, P = 0.33, Rope = 909.50

R = 1000, P = 0.33, Rope = 911.07

R = 1000, P = 0.33, Rope = 912.64

R = 1000, P = 0.34, Rope = 914.21

R = 1000, P = 0.34, Rope = 915.78

R = 1000, P = 0.34, Rope = 917.34

R = 1000, P = 0.34, Rope = 918.91

R = 1000, P = 0.34, Rope = 920.47

R = 1000, P = 0.34, Rope = 922.03

R = 1000, P = 0.34, Rope = 923.59

R = 1000, P = 0.34, Rope = 925.15

R = 1000, P = 0.34, Rope = 926.71

R = 1000, P = 0.34, Rope = 928.26

R = 1000, P = 0.34, Rope = 929.82

R = 1000, P = 0.35, Rope = 931.37

R = 1000, P = 0.35, Rope = 932.92

R = 1000, P = 0.35, Rope = 934.47

R = 1000, P = 0.35, Rope = 936.02

R = 1000, P = 0.35, Rope = 937.57

R = 1000, P = 0.35, Rope = 939.12

R = 1000, P = 0.35, Rope = 940.66

R = 1000, P = 0.35, Rope = 942.21

R = 1000, P = 0.35, Rope = 943.75

R = 1000, P = 0.35, Rope = 945.29

R = 1000, P = 0.36, Rope = 946.83

R = 1000, P = 0.36, Rope = 948.37

R = 1000, P = 0.36, Rope = 949.91

R = 1000, P = 0.36, Rope = 951.44

R = 1000, P = 0.36, Rope = 952.98

R = 1000, P = 0.36, Rope = 954.51

R = 1000, P = 0.36, Rope = 956.04

R = 1000, P = 0.36, Rope = 957.58

R = 1000, P = 0.36, Rope = 959.11

R = 1000, P = 0.36, Rope = 960.64

R = 1000, P = 0.37, Rope = 962.16

R = 1000, P = 0.37, Rope = 963.69

R = 1000, P = 0.37, Rope = 965.22

R = 1000, P = 0.37, Rope = 966.74

R = 1000, P = 0.37, Rope = 968.26

R = 1000, P = 0.37, Rope = 969.79

R = 1000, P = 0.37, Rope = 971.31

R = 1000, P = 0.37, Rope = 972.83

R = 1000, P = 0.37, Rope = 974.34

R = 1000, P = 0.38, Rope = 975.86

R = 1000, P = 0.38, Rope = 977.38

R = 1000, P = 0.38, Rope = 978.89

R = 1000, P = 0.38, Rope = 980.41

R = 1000, P = 0.38, Rope = 981.92

R = 1000, P = 0.38, Rope = 983.43

R = 1000, P = 0.38, Rope = 984.94

R = 1000, P = 0.38, Rope = 986.45

R = 1000, P = 0.38, Rope = 987.96

R = 1000, P = 0.38, Rope = 989.47

R = 1000, P = 0.39, Rope = 990.98

R = 1000, P = 0.39, Rope = 992.48

R = 1000, P = 0.39, Rope = 993.99

R = 1000, P = 0.39, Rope = 995.49

R = 1000, P = 0.39, Rope = 996.99

R = 1000, P = 0.39, Rope = 998.50

R = 1000, P = 0.39, Rope = 1000.00

R = 1000, P = 0.39, Rope = 1001.50

R = 1000, P = 0.39, Rope = 1002.99

R = 1000, P = 0.39, Rope = 1004.49

R = 1000, P = 0.40, Rope = 1005.99

R = 1000, P = 0.40, Rope = 1007.48

R = 1000, P = 0.40, Rope = 1008.98

R = 1000, P = 0.40, Rope = 1010.47

R = 1000, P = 0.40, Rope = 1011.96

R = 1000, P = 0.40, Rope = 1013.46

R = 1000, P = 0.40, Rope = 1014.95

R = 1000, P = 0.40, Rope = 1016.44

R = 1000, P = 0.40, Rope = 1017.93

R = 1000, P = 0.40, Rope = 1019.41

R = 1000, P = 0.41, Rope = 1020.90

R = 1000, P = 0.41, Rope = 1022.39

R = 1000, P = 0.41, Rope = 1023.87

R = 1000, P = 0.41, Rope = 1025.36

R = 1000, P = 0.41, Rope = 1026.84

R = 1000, P = 0.41, Rope = 1028.32

R = 1000, P = 0.41, Rope = 1029.80

R = 1000, P = 0.41, Rope = 1031.28

R = 1000, P = 0.41, Rope = 1032.76

R = 1000, P = 0.41, Rope = 1034.24

R = 1000, P = 0.41, Rope = 1035.72

R = 1000, P = 0.42, Rope = 1037.20

R = 1000, P = 0.42, Rope = 1038.67

R = 1000, P = 0.42, Rope = 1040.15

R = 1000, P = 0.42, Rope = 1041.62

R = 1000, P = 0.42, Rope = 1043.10

R = 1000, P = 0.42, Rope = 1044.57

R = 1000, P = 0.42, Rope = 1046.04

R = 1000, P = 0.42, Rope = 1047.51

R = 1000, P = 0.42, Rope = 1048.98

R = 1000, P = 0.42, Rope = 1050.45

R = 1000, P = 0.43, Rope = 1051.92

R = 1000, P = 0.43, Rope = 1053.39

R = 1000, P = 0.43, Rope = 1054.86

R = 1000, P = 0.43, Rope = 1056.32

R = 1000, P = 0.43, Rope = 1057.79

R = 1000, P = 0.43, Rope = 1059.25

R = 1000, P = 0.43, Rope = 1060.72

R = 1000, P = 0.43, Rope = 1062.18

R = 1000, P = 0.43, Rope = 1063.64

R = 1000, P = 0.43, Rope = 1065.11

R = 1000, P = 0.44, Rope = 1066.57

R = 1000, P = 0.44, Rope = 1068.03

R = 1000, P = 0.44, Rope = 1069.49

R = 1000, P = 0.44, Rope = 1070.94

R = 1000, P = 0.44, Rope = 1072.40

R = 1000, P = 0.44, Rope = 1073.86

R = 1000, P = 0.44, Rope = 1075.32

R = 1000, P = 0.44, Rope = 1076.77

R = 1000, P = 0.44, Rope = 1078.23

R = 1000, P = 0.45, Rope = 1079.68

R = 1000, P = 0.45, Rope = 1081.14

R = 1000, P = 0.45, Rope = 1082.59

R = 1000, P = 0.45, Rope = 1084.04

R = 1000, P = 0.45, Rope = 1085.49

R = 1000, P = 0.45, Rope = 1086.94

R = 1000, P = 0.45, Rope = 1088.39

R = 1000, P = 0.45, Rope = 1089.84

R = 1000, P = 0.45, Rope = 1091.29

R = 1000, P = 0.45, Rope = 1092.74

R = 1000, P = 0.46, Rope = 1094.19

R = 1000, P = 0.46, Rope = 1095.64

R = 1000, P = 0.46, Rope = 1097.08

R = 1000, P = 0.46, Rope = 1098.53

R = 1000, P = 0.46, Rope = 1099.97

R = 1000, P = 0.46, Rope = 1101.42

R = 1000, P = 0.46, Rope = 1102.86

R = 1000, P = 0.46, Rope = 1104.30

R = 1000, P = 0.46, Rope = 1105.75

R = 1000, P = 0.46, Rope = 1107.19

R = 1000, P = 0.47, Rope = 1108.63

R = 1000, P = 0.47, Rope = 1110.07

R = 1000, P = 0.47, Rope = 1111.51

R = 1000, P = 0.47, Rope = 1112.95

R = 1000, P = 0.47, Rope = 1114.39

R = 1000, P = 0.47, Rope = 1115.83

R = 1000, P = 0.47, Rope = 1117.26

R = 1000, P = 0.47, Rope = 1118.70

R = 1000, P = 0.47, Rope = 1120.14

R = 1000, P = 0.47, Rope = 1121.57

R = 1000, P = 0.47, Rope = 1123.01

R = 1000, P = 0.48, Rope = 1124.44

R = 1000, P = 0.48, Rope = 1125.88

R = 1000, P = 0.48, Rope = 1127.31

R = 1000, P = 0.48, Rope = 1128.75

R = 1000, P = 0.48, Rope = 1130.18

R = 1000, P = 0.48, Rope = 1131.61

R = 1000, P = 0.48, Rope = 1133.04

R = 1000, P = 0.48, Rope = 1134.47

R = 1000, P = 0.48, Rope = 1135.90

R = 1000, P = 0.48, Rope = 1137.33

R = 1000, P = 0.49, Rope = 1138.76

R = 1000, P = 0.49, Rope = 1140.19

R = 1000, P = 0.49, Rope = 1141.62

R = 1000, P = 0.49, Rope = 1143.05

R = 1000, P = 0.49, Rope = 1144.48

R = 1000, P = 0.49, Rope = 1145.91

R = 1000, P = 0.49, Rope = 1147.33

R = 1000, P = 0.49, Rope = 1148.76

R = 1000, P = 0.49, Rope = 1150.18

R = 1000, P = 0.49, Rope = 1151.61

R = 1000, P = 0.50, Rope = 1153.03

R = 1000, P = 0.50, Rope = 1154.46

R = 1000, P = 0.50, Rope = 1155.88

R = 1000, P = 0.50, Rope = 1157.30

R = 1000, P = 0.50, Rope = 1158.73



Darko
Guru
Posts: 580
Joined: Fri Nov 11, 2005 9:34 am
Location: Calgary, Canada

Post by Darko »

I was staring at those rope lengths trying to figure out what was different - but then I realized that the problem was somewhere else. The difference is in the displayed P values. Whatever the standard way of rounding .5 is, I can't guess it.

E.g. 0.495 is rounded to 0.49. But 0.465 is rounded to 0.47. Odd/even or something? Nope, can't be that simple - 0.485 is rounded to 0.48. 0.455 and 0.445 are rounded up. But 0.435 is rounded down... argh!

So, if there is someone else out there trying to figure out what is going on - this might be it. Now, how would one want to deal with it? No idea - probably using C will fix it (EDIT: It did). But there is one Java solution AC, so I'm puzzled.

I'm not sure what I am trying to prove here, but I tried to get the pattern and I couldn't - these are the counts of the rounded values (daveon's input goes from 0.000-0.500 in 0.001 increments):

Code: Select all

0.00 5
0.01 11
0.02 9
0.03 10
0.04 11
0.05 9
0.06 10
0.07 11
0.08 9
0.09 10
0.10 11
0.11 9
0.12 11
0.13 9
0.14 11
0.15 10
0.16 9
0.17 11
0.18 10
0.19 9
0.20 11
0.21 10
0.22 9
0.23 11
0.24 10
0.25 9
0.26 10
0.27 10
0.28 11
0.29 10
0.30 10
0.31 9
0.32 10
0.33 10
0.34 11
0.35 10
0.36 10
0.37 9
0.38 10
0.39 10
0.40 10
0.41 11
0.42 10
0.43 10
0.44 9
0.45 10
0.46 10
0.47 11
0.48 10
0.49 10
0.50 5

daveon
Experienced poster
Posts: 229
Joined: Tue Aug 31, 2004 2:41 am
Location: TORONTO, CANADA

Post by daveon »

I believe it has to do more with what formula you use.

Darko
Guru
Posts: 580
Joined: Fri Nov 11, 2005 9:34 am
Location: Calgary, Canada

Post by Darko »

I used the same formula in Java and C - but the numbers above are given in the input. I had no difference in lengths (because PI gets involved and they end up being irrational, I guess). Java rounds all of them "half up" and C rounds them in that weird way.

Carlos
System administrator
Posts: 1286
Joined: Sat Oct 13, 2001 2:00 am
Location: Valladolid, Spain
Contact:

Post by Carlos »

why don't you post this kind of problems in the specified bugs and suggestions forum??? Go ahead!!

For this particular problem, every 0.005 should be rounded up: 0.01. If it's not like that in judge's output we should change it.

This rounding is independent from the programming language you use. You can get this result in Java, Pascal, C or whatever you use. You just need to know how floating point numbers work. In this particular test case, you should not print P, but P+EPS being EPS a number between the precision of the real number (1e-16 for doubles) and the precision of the problem (5e-4 for P). The same applies for the other number.
DON'T PM ME --> For any doubt, suggestion or error reporting, please use the "Contact us" form in the web.

Darko
Guru
Posts: 580
Joined: Fri Nov 11, 2005 9:34 am
Location: Calgary, Canada

Post by Darko »

You were right, I added EPS to P and got accepted. But why I didn't have to do that in C? As you said, there shouldn't be any difference. Unless printf() adds EPS on its own?

I didn't post it in Bugs and Suggestions because I wasn't completely sure it wasn't on my side (there is one Java and 3 Pascal solutions that passed). And it turned out to be the case.

I'll check 10215, but I think that one might be bad.

Post Reply

Return to “Volume 3 (300-399)”