207 - PGA Tour Prize Money

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

Moderator: Board moderators

tiagobarbosa
New poster
Posts: 1
Joined: Fri Apr 08, 2005 12:09 am

207 - PGA Tour Prize Money

Post by tiagobarbosa » Fri Apr 08, 2005 12:13 am

I there!
I was wondering if someone who had the code of problem 207 could send it to me.
I am starting in C and it is not easy to me.
Thanks for your cooperation.

User avatar
little joey
Guru
Posts: 1080
Joined: Thu Dec 19, 2002 7:37 pm

207 PGA tour; still no prize...

Post by little joey » Tue Oct 25, 2005 4:23 pm

Been on this one for a long time, but nothing but WAs.
I could begin to describe what I have tried already, but I don't have the gusto... so some pretty long I/O instead. Can anybody confirm?

Code: Select all

2

289383.00
2.5532
2.5037
2.4567
2.4440
2.3822
2.3659
2.3177
2.2960
2.2951
2.2941
2.2624
2.0618
2.0533
2.0399
1.9831
1.9433
1.9419
1.9186
1.9108
1.8476
1.8471
1.7967
1.7953
1.7946
1.7702
1.6996
1.6977
1.6898
1.6873
1.6390
1.6275
1.6201
1.5887
1.5744
1.5213
1.5187
1.4698
1.4473
1.3924
1.3289
1.3202
1.3132
1.3132
1.2707
1.2521
1.2378
1.2215
1.2191
1.1902
1.1645
1.0756
1.0573
0.9797
0.9643
0.9421
0.8594
0.6873
0.6180
0.6090
0.5171
0.4613
0.4503
0.4472
0.4448
0.3400
0.3232
0.2278
0.0550
0.0471
0.0133
140
Apqfwk Konk*        79 70 66 63
Uqcljjsd            69 64 76 75
Rrbljpsw            71 76 80 75
Rwsofsn H Sx        DQ
Cacehcv             76 65 71 78
Pqpxrjiychcodm Wf*  77 62 81 66
Ytdlcgwa H          73 82 60 64
Gspqoqbgn Xl        64 67 71 75
Lnsadeu*            66 79 72 78
Tokyxh Hvxrl        72 74 70 DQ
Gmlejuw             79 DQ
Menmey              63 72 62 71
Xloghim Vjvypueue   73 78 67 68
Pggkbb              63 65 66 68
Mludfy              72 80 62 64
Oobppll             78 83 74 80
Hdcnvw              67 64 71 69
Hauxns Giq          77 81 69 75
Jsuyibbs            78 68 61 70
Zevypzeb F          62 77 DQ
Xtigsih Z           66 75 62 65
Xztqrssy*           77 61 66 79
Pddbuobwr           82 79 75 77
Geiqvdiwawp Glep*   DQ
Qzdzub              75 66 76 74
Pqwuziodyb Z*       77 71 63 83
Nunnesp             78 71 69 73
Bknhkw Ncrd*        71 66 66 64
Rfwcsf E J          62 78 80 63
Meahkg              74 63 76 80
Ymqpxh              68 70 67 65
Hbasjego Ti*        73 60 65 77
Kqdorxrt            74 66 81 74
Xlpgdif Qpn E       61 76 77 63
Wctgtwn             78 64 DQ
Unublm Tk *         83 81 60 75
Etvhqnj*            74 70 69 60
Zqfrpjapm*          70 62 80 82
Jnewxg              64 66 65 67
Wnnvbwke            83 78 75 63
Wujbqxi O           60 67 73 71
Dsycqhehea*         60 82 78 74
Bnvfgv Va*          65 77 81 71
Ncqgjlo             74 70 DQ
Etcmkbotvgvhnxrdm   82 65 60 81
Heyent              70 DQ
Qcrglu*             83 64 79 73
Jrqopug             81 72 75 76
Swybgf              77 79 74 71
Rlyauu              78 63 81 62
Lffrkebif*          75 79 71 81
Xcxmjc *            67 65 76 65
Ebhnlmm             63 73 61 80
Eeexgri             78 65 80 68
Vrftwa              83 83 80 71
Srxajjc Ks S        83 75 74 70
Njulkfm             DQ
Famespjzr Ys Yv     68 67 61 75
Cnvbma*             63 DQ
Wraatz*             74 63 65 62
Ncvkelzhnnpgnw*     66 76 78 62
Xpmmsbpgmz Tnszl*   81 77 76 66
Lvybwxtg            62 70 60 61
Szkhfznol F M*      66 62 74 64
Fohesymw*           64 69 72 75
Jftqtwai M Pg       80 66 61 76
Wtbsee              75 61 69 61
Vpdjxyqt            79 64 83 80
Ofremgr K           69 81 79 80
Jhdnaynta Eef       68 62 66 DQ
Vtqtkfy Lq          DQ
Yqdntdrle*          67 82 66 77
Epxchvy G           71 DQ
Swmeayi             74 70 DQ
Ssfxtg X*           72 70 67 60
Djqnqc              81 62 72 71
Vmwnuunlv *         DQ
Qandly              64 DQ
Aosnlnc             68 DQ
Moiawc W*           70 60 67 73
Naikam*             63 64 74 76
Ggxach Q            78 65 75 80
Hvokii*             74 83 61 61
Soaifznb Nxyonp I   66 75 82 79
Rxkfhii Iq          70 75 72 77
Nzxtzq              DQ
Atycbmwned          76 75 65 72
Pvgrrgsrek*         70 67 73 78
Qawixekf            82 68 71 77
Mbpbeguquejhj Fvd   61 76 68 63
Tbplyzis Wrurg      74 68 79 60
Tqiktx              74 67 66 62
Ubbjbric            63 72 DQ
Vdkujcshk Zwj       64 81 73 83
Nmkjgnmu            70 80 62 61
Ugjtfi              71 73 83 83
Amucimndjud         64 72 72 82
Vjaxrnchq*          66 82 68 62
Vslqprsh            71 66 71 78
Uyyfquzmeyfskv      61 77 64 61
Xjndjrr*            71 76 78 74
Ayshwx Z Ufmnq      64 66 71 70
Xdlicjk Xmcmwo      67 73 80 74
Ugfrtequ            79 76 77 63
Osaodqkr T Bq*      72 80 73 65
Uiokcowxnq K        73 64 64 78
Gaglod Dz           68 70 60 63
Yityjrxko           63 70 72 72
Ojfckyrkku Cau      77 DQ
Jxkixdjt*           66 69 75 63
Badvfuufkupf Y      72 81 62 78
Aapahjelq*          72 76 72 76
Leinkof             60 60 60 71
Mxkynwqw            61 78 65 78
Usgkmnq             71 70 DQ
Hoqakqglf           67 DQ
Zgsplowgi           65 73 82 61
Wdtksskaxdl         60 71 77 83
Rumbme              60 73 64 60
Ntclgh Ohbcp Y Mf   60 81 74 72
Hiqbjtik *          71 62 82 76
Abhsli Vqa Yr*      83 73 66 70
Hgepkz L*           83 60 82 74
Tdoqiss V*          DQ
Vzptlpoy            67 80 DQ
Aosaghfneti Cznhp*  74 74 80 71
Uujvwtbrdbhu*       79 82 83 72
Qinntqhknwsaq       82 79 61 61
Ermrny W Phanphl*   67 DQ
Avdwzorwrs          66 61 DQ
Vtmzzc Vfyv         77 79 61 64
Ghbctc X Zpzfc Qz   DQ
Tlrsppij            61 65 75 65
Nmdduribs Ocrm Yd*  64 81 64 61
Dnobqc              64 66 65 78
Pxcaniqx            DQ
Pymqor*             66 65 64 60
Oghotpf S Ricfbr    70 72 78 76
Dfnnzckps           64 72 62 66
Ungfzo              73 67 67 60

320788.00
2.9421
2.9354
2.7666
2.7149
2.6625
2.5505
2.5259
2.4517
2.4406
2.4250
2.2774
2.1331
2.0760
2.0639
2.0233
2.0015
1.9395
1.9308
1.9120
1.9002
1.8913
1.8750
1.6926
1.6782
1.6140
1.6023
1.5874
1.5767
1.5504
1.5406
1.5167
1.4919
1.4724
1.4721
1.4696
1.4604
1.4540
1.4108
1.3978
1.3805
1.3709
1.3704
1.3611
1.3044
1.2493
1.0667
1.0565
1.0006
0.9985
0.9633
0.9535
0.9486
0.9364
0.8549
0.8376
0.7343
0.7219
0.6010
0.5943
0.5868
0.5787
0.4608
0.4251
0.3804
0.2750
0.2723
0.1436
0.1081
0.0245
0.0129
123
Aamicoi J*          70 60 65 65
Dgztqaa             64 76 71 63
Letjqpdle Na*       68 60 62 62
Ydypvmxhuk          68 78 72 80
Uvjvah              62 82 71 80
Ywhmgc              69 72 71 63
Mxwnei              80 82 83 73
Pwzvah              75 71 70 81
Xngexr*             61 64 66 63
Obiokvk             77 71 66 75
Omeqlfzksnar*       68 74 61 73
Twhpvg*             74 73 82 60
Ubxruwsprai         61 63 64 73
Htaapz B            69 67 76 79
Mwjqdj Zu           69 62 75 63
Soppvtiyfe Ra       62 76 63 62
Mfbrnkzvctvbv       66 61 74 76
Pgemjayfwqcat*      65 79 68 83
Ttncjtr             78 72 65 73
Jjfkbo*             DQ
Enrxih*             DQ
Nbtgxdt Vc T*       67 69 75 72
Xorquo Pzr Cym      71 72 77 64
Vthfiv              63 76 74 64
Etwifts Gb          72 DQ
Vzzscq              67 81 80 80
Eqtmyk              75 77 63 79
Znluiyfsu           74 64 70 78
Sdmzohttytn Ypft    62 73 71 64
Hpsdifr             80 77 67 70
Hhsxhn Cm           66 76 65 60
Zrphfoivxbvwrbtar   61 66 73 82
Grxekx              65 67 70 72
Qwspdjau Quzsp S *  83 82 64 80
Wbtpqenlggeiio*     DQ
Zlifxcd*            77 63 79 68
Nviajs              77 69 69 77
Mxmsmm              61 79 77 67
Xofbxmlr            76 81 73 62
Urhcbmz Y           61 80 79 66
Aappzoi*            65 71 75 65
Dioytn Eev Jvt      83 71 65 83
Znfdcm Sd Hmcbwvb*  65 DQ
Dgacjp              80 72 77 80
Ssfvoyem Fhn Dqid   62 72 64 69
Ivqpdznvuj          75 68 81 80
Hlrqgjj Z Spg Fe    DQ
Iayrojh             83 79 61 82
Ysdhztq             79 63 68 63
Xxvgxnv Aja Wwl     74 74 82 61
Hiddqm              69 62 72 DQ
Rogckdak Fiujf      69 69 68 78
Fnmbaqy V           61 61 73 74
Aedeto              60 82 73 65
Uacbpqj Kndf        62 70 80 77
Stbkjqscrx Mqt*     81 74 69 68
Geggin J*           67 63 79 74
Kfhfyl Lp           70 83 63 74
Nyimezmrt           80 72 81 61
Iudfspxzle          65 68 82 61
Ltovorifg*          67 74 79 60
Zdondv              70 82 75 76
Zraaaeh *           64 70 77 69
Wdause              67 61 61 74
Xffkalrla           66 76 68 65
Ggxbpv Lgh          60 80 70 82
Eicbnlon*           60 67 83 79
Wzxsfpditjz Ewfdu   63 64 70 80
Lemwwlnw            64 70 70 75
Zxoety Vrv Lll Gf   DQ
Aatpdog             76 73 66 61
Uhapgfk*            72 73 74 67
Bmdypu*             62 69 80 76
Suboed              64 81 60 83
Ghcydsmbf*          83 67 75 72
Awmucqu             63 80 65 76
Mhfoogxhw Ijmuszf   72 76 73 62
Whwere E*           DQ
Irqvxrwbpzvz        68 81 76 80
Vhnwal              73 77 68 80
Gxjxylr             83 73 83 63
Nrwcgl              82 72 71 76
Mctltuvu            67 68 73 80
Nmmyxdfaq Qj Mxml   68 71 DQ
Djaebvlxydpotc      78 69 62 69
Wkqubqt*            69 77 83 65
Twltmv T            64 79 65 83
Vlofya              76 77 77 79
Iljkgh Pt Rp Jes    83 66 75 83
Yseenu              78 71 72 80
Xldpki              64 83 79 75
Bezoawkku           75 81 82 63
Rugawc*             81 66 73 83
Cxsdrg              75 62 67 72
Bgkxin Btvb*        73 82 DQ
Sdnslp              DQ
Kkovqp              81 76 78 82
Aeugqc              61 82 67 63
Nlcdaj              76 80 78 77
Izaabbwt*           71 76 73 72
Aeovvd Llg*         77 81 81 DQ
Krfahnbheb          77 67 60 80
Jbiwup*             68 DQ
Guznwmym S B        68 65 81 80
Xjjyyfo             66 80 62 71
Igzrtr*             68 DQ
Ucldakd Rxckea Pu   62 73 78 63
Mutzyvim Wnh        65 69 70 78
Gvbahl*             65 74 66 75
Vgpvjcu             73 81 60 79
Satuzn Cx Dvlb      62 67 68 60
Pttuviekf*          81 67 80 76
Bigfgm              65 76 72 81
Iefojinjj           72 78 80 DQ
Guydou*             77 74 82 71
Bkqlmzosccxw*       79 71 65 74
Evzevp              76 72 68 71
Hmhakop Rycx Gt     71 72 79 70
Mkbobau             72 65 68 76
Trgutpl             80 72 DQ
Wcqayce Lgaffu      60 76 65 70
Jwgkatbe            70 73 80 61
Vjnwygem            DQ

Code: Select all

Player Name          Place     RD1  RD2  RD3  RD4  TOTAL     Money Won
-----------------------------------------------------------------------
Leinkof              1         60   60   60   71   251       $  7388.53
Lvybwxtg             2         62   70   60   61   253       $  7245.28
Pymqor*              3         66   65   64   60   255
Rumbme               4         60   73   64   60   257       $  7109.27
Gaglod Dz            5         68   70   60   63   261       $  7072.52
Jnewxg               6T        64   66   65   67   262       $  6870.10
Pggkbb               6T        63   65   66   68   262       $  6870.10
Uyyfquzmeyfskv       8         61   77   64   61   263       $  6707.03
Dfnnzckps            9         64   72   62   66   264       $  6642.93
Wraatz*              9         74   63   65   62   264
Szkhfznol F M*       11        66   62   74   64   266
Tlrsppij             11T       61   65   75   65   266       $  6609.56
Wtbsee               11T       75   61   69   61   266       $  6609.56
Bknhkw Ncrd*         14        71   66   66   64   267
Ungfzo               14        73   67   67   60   267       $  6288.03
Mbpbeguquejhj Fvd    16T       61   76   68   63   268       $  6044.35
Menmey               16T       63   72   62   71   268       $  6044.35
Xtigsih Z            16T       66   75   62   65   268       $  6044.35
Ssfxtg X*            19        72   70   67   60   269
Tqiktx               19        74   67   66   62   269       $  5681.17
Moiawc W*            21        70   60   67   73   270
Ymqpxh               21        68   70   67   65   270       $  5650.35
Ayshwx Z Ufmnq       23T       64   66   71   70   271       $  5519.66
Famespjzr Ys Yv      23T       68   67   61   75   271       $  5519.66
Hdcnvw               23T       67   64   71   69   271       $  5519.66
Wujbqxi O            23T       60   67   73   71   271       $  5519.66
Dnobqc               27        64   66   65   78   273       $  5246.61
Jxkixdjt*            27        66   69   75   63   273
Xcxmjc *             27        67   65   76   65   273
Hbasjego Ti*         30        73   60   65   77   275
Ebhnlmm              31T       63   73   61   80   277       $  5145.50
Gspqoqbgn Xl         31T       64   67   71   75   277       $  5145.50
Naikam*              31        63   64   74   76   277
Xlpgdif Qpn E        31T       61   76   77   63   277       $  5145.50
Yityjrxko            31T       63   70   72   72   277       $  5145.50
Uiokcowxnq K         36        73   64   64   78   279       $  5145.50
Fohesymw*            37        64   69   72   75   280
Tbplyzis Wrurg       38T       74   68   79   60   281       $  4901.42
Zgsplowgi            38T       65   73   82   61   281       $  4901.42
Mxkynwqw             40        61   78   65   78   282       $  4812.87
Ncvkelzhnnpgnw*      40        66   76   78   62   282
Rfwcsf E J           42        62   78   80   63   283       $  4761.29
Xztqrssy*            42        77   61   66   79   283
Rlyauu               44T       78   63   81   62   284       $  4724.79
Uqcljjsd             44T       69   64   76   75   284       $  4724.79
Djqnqc               46T       81   62   72   71   286       $  4518.62
Pqpxrjiychcodm Wf*   46        77   62   81   66   286
Vslqprsh             46T       71   66   71   78   286       $  4518.62
Ntclgh Ohbcp Y Mf    49        60   81   74   72   287       $  4518.62
Pvgrrgsrek*          50        70   67   73   78   288
Amucimndjud          51T       64   72   72   82   290       $  4324.11
Cacehcv              51T       76   65   71   78   290       $  4324.11
Eeexgri              53T       78   65   80   68   291       $  3970.91
Hiqbjtik *           53        71   62   82   76   291
Qzdzub               53T       75   66   76   74   291       $  3970.91
Wdtksskaxdl          53T       60   71   77   83   291       $  3970.91
Meahkg               57        74   63   76   80   293       $  3970.91
Bnvfgv Va*           58        65   77   81   71   294
Dsycqhehea*          58        60   82   78   74   294
Xdlicjk Xmcmwo       58        67   73   80   74   294       $  3725.23
Zqfrpjapm*           58        70   62   80   82   294
Kqdorxrt             62        74   66   81   74   295       $  3725.23
Oghotpf S Ricfbr     63        70   72   78   76   296       $  3725.23
Ggxach Q             64        78   65   75   80   298       $  3725.23
Hgepkz L*            65        83   60   82   74   299
Soaifznb Nxyonp I    66        66   75   82   79   302       $  3581.98
Vpdjxyqt             67        79   64   83   80   306       $  3534.81
Jhdnaynta Eef                  68   62   66        DQ
Avdwzorwrs                     66   61             DQ
Ubbjbric                       63   72             DQ
Zevypzeb F                     62   77             DQ
Usgkmnq                        71   70             DQ
Wctgtwn                        78   64             DQ

Player Name          Place     RD1  RD2  RD3  RD4  TOTAL     Money Won
-----------------------------------------------------------------------
Letjqpdle Na*        1         68   60   62   62   252
Xngexr*              2         61   64   66   63   254
Satuzn Cx Dvlb       3         62   67   68   60   257       $  9437.90
Aamicoi J*           4         70   60   65   65   260
Ubxruwsprai          5         61   63   64   73   261       $  9416.41
Soppvtiyfe Ra        6T        62   76   63   62   263       $  8792.00
Wdause               6T        67   61   61   74   263       $  8792.00
Hhsxhn Cm            8T        66   76   65   60   267       $  8361.34
Ssfvoyem Fhn Dqid    8T        62   72   64   69   267       $  8361.34
Fnmbaqy V            10T       61   61   73   74   269       $  7983.77
Mwjqdj Zu            10T       69   62   75   63   269       $  7983.77
Sdmzohttytn Ypft     12        62   73   71   64   270       $  7829.15
Wcqayce Lgaffu       13        60   76   65   70   271       $  7779.11
Aeugqc               14T       61   82   67   63   273       $  7074.18
Ysdhztq              14T       79   63   68   63   273       $  7074.18
Dgztqaa              16T       64   76   71   63   274       $  6640.15
Grxekx               16T       65   67   70   72   274       $  6640.15
Xffkalrla            18T       66   76   68   65   275       $  6455.54
Ywhmgc               18T       69   72   71   63   275       $  6455.54
Aappzoi*             20        65   71   75   65   276
Cxsdrg               20T       75   62   67   72   276       $  6142.32
Iudfspxzle           20T       65   68   82   61   276       $  6142.32
Omeqlfzksnar*        20        68   74   61   73   276
Ucldakd Rxckea Pu    20T       62   73   78   63   276       $  6142.32
Mfbrnkzvctvbv        25T       66   61   74   76   277       $  6099.81
Vthfiv               25T       63   76   74   64   277       $  6099.81
Wzxsfpditjz Ewfdu    25T       63   64   70   80   277       $  6099.81
Djaebvlxydpotc       28        78   69   62   69   278       $  5429.66
Lemwwlnw             29T       64   70   70   75   279       $  5280.49
Xjjyyfo              29T       66   80   62   71   279       $  5280.49
Aedeto               31        60   82   73   65   280       $  5065.88
Gvbahl*              31        65   74   66   75   280
Ltovorifg*           31        67   74   79   60   280
Zraaaeh *            31        64   70   77   69   280
Mkbobau              35        72   65   68   76   281       $  5065.88
Mutzyvim Wnh         36T       65   69   70   78   282       $  5065.88
Zrphfoivxbvwrbtar    36T       61   66   73   82   282       $  5065.88
Geggin J*            38        67   63   79   74   283
Nbtgxdt Vc T*        38        67   69   75   72   283
Awmucqu              40T       63   80   65   76   284       $  4792.20
Jwgkatbe             40T       70   73   80   61   284       $  4792.20
Krfahnbheb           40T       77   67   60   80   284       $  4792.20
Mxmsmm               40T       61   79   77   67   284       $  4792.20
Rogckdak Fiujf       40T       69   69   68   78   284       $  4792.20
Xorquo Pzr Cym       40T       71   72   77   64   284       $  4792.20
Uhapgfk*             46        72   73   74   67   286
Urhcbmz Y            46T       61   80   79   66   286       $  4624.91
Znluiyfsu            46T       74   64   70   78   286       $  4624.91
Bmdypu*              49        62   69   80   76   287
Zlifxcd*             49        77   63   79   68   287
Mctltuvu             51T       67   68   73   80   288       $  4554.44
Suboed               51T       64   81   60   83   288       $  4554.44
Eicbnlon*            53        60   67   83   79   289
Twhpvg*              53        74   73   82   60   289
Uacbpqj Kndf         53        62   70   80   77   289       $  4407.41
Htaapz B             56T       69   67   76   79   291       $  4407.41
Twltmv T             56T       64   79   65   83   291       $  4407.41
Ggxbpv Lgh           58T       60   80   70   82   292       $  3995.01
Hmhakop Rycx Gt      58T       71   72   79   70   292       $  3995.01
Izaabbwt*            58        71   76   73   72   292
Nviajs               58T       77   69   69   77   292       $  3995.01
Bigfgm               62T       65   76   72   81   294       $  3531.31
Guznwmym S B         62T       68   65   81   80   294       $  3531.31
Wkqubqt*             62        69   77   83   65   294
Pgemjayfwqcat*       65        65   79   68   83   295
Uvjvah               65        62   82   71   80   295       $  3367.19
Pwzvah               67        75   71   70   81   297       $  3367.19
Ydypvmxhuk           68        68   78   72   80   298       $  3090.15
Xldpki               69        64   83   79   75   301       $  3058.71
Rugawc*              70        81   66   73   83   303
Ivqpdznvuj           71        75   68   81   80   304       $  3042.99
Hiddqm                         69   62   72        DQ
Nmmyxdfaq Qj Mxml              68   71             DQ

stubbscroll
Experienced poster
Posts: 151
Joined: Tue Nov 16, 2004 7:23 pm
Location: Norway
Contact:

Post by stubbscroll » Sat Oct 29, 2005 11:48 am

Here is the output from my AC(P.E.) program. It seems our outputs differ a lot in the prizes column.

Code: Select all

Player Name          Place     RD1  RD2  RD3  RD4  TOTAL     Money Won
-----------------------------------------------------------------------
Leinkof              1         60   60   60   71   251       $  7388.53
Lvybwxtg             2         62   70   60   61   253       $  7245.28
Pymqor*              3         66   65   64   60   255
Rumbme               4         60   73   64   60   257       $  7109.27
Gaglod Dz            5         68   70   60   63   261       $  7072.52
Jnewxg               6T        64   66   65   67   262       $  6870.10
Pggkbb               6T        63   65   66   68   262       $  6870.10
Uyyfquzmeyfskv       8         61   77   64   61   263       $  6707.03
Dfnnzckps            9         64   72   62   66   264       $  6644.23
Wraatz*              9         74   63   65   62   264
Szkhfznol F M*       11        66   62   74   64   266
Tlrsppij             11T       61   65   75   65   266       $  6640.18
Wtbsee               11T       75   61   69   61   266       $  6640.18
Bknhkw Ncrd*         14        71   66   66   64   267
Ungfzo               14        73   67   67   60   267       $  6547.00
Mbpbeguquejhj Fvd    16T       61   76   68   63   268       $  5937.17
Menmey               16T       63   72   62   71   268       $  5937.17
Xtigsih Z            16T       66   75   62   65   268       $  5937.17
Ssfxtg X*            19        72   70   67   60   269
Tqiktx               19        74   67   66   62   269       $  5738.75
Moiawc W*            21        70   60   67   73   270
Ymqpxh               21        68   70   67   65   270       $  5623.58
Ayshwx Z Ufmnq       23T       64   66   71   70   271       $  5511.95
Famespjzr Ys Yv      23T       68   67   61   75   271       $  5511.95
Hdcnvw               23T       67   64   71   69   271       $  5511.95
Wujbqxi O            23T       60   67   73   71   271       $  5511.95
Dnobqc               27        64   66   65   78   273       $  5345.19
Jxkixdjt*            27        66   69   75   63   273
Xcxmjc *             27        67   65   76   65   273
Hbasjego Ti*         30        73   60   65   77   275
Ebhnlmm              31T       63   73   61   80   277       $  5177.64
Gspqoqbgn Xl         31T       64   67   71   75   277       $  5177.64
Naikam*              31        63   64   74   76   277
Xlpgdif Qpn E        31T       61   76   77   63   277       $  5177.64
Yityjrxko            31T       63   70   72   72   277       $  5177.64
Uiokcowxnq K         36        73   64   64   78   279       $  4918.35
Fohesymw*            37        64   69   72   75   280
Tbplyzis Wrurg       38T       74   68   79   60   281       $  4901.42
Zgsplowgi            38T       65   73   82   61   281       $  4901.42
Mxkynwqw             40        61   78   65   78   282       $  4882.76
Ncvkelzhnnpgnw*      40        66   76   78   62   282
Rfwcsf E J           42        62   78   80   63   283       $  4742.99
Xztqrssy*            42        77   61   66   79   283
Rlyauu               44T       78   63   81   62   284       $  4699.00
Uqcljjsd             44T       69   64   76   75   284       $  4699.00
Djqnqc               46T       81   62   72   71   286       $  4576.74
Pqpxrjiychcodm Wf*   46        77   62   81   66   286
Vslqprsh             46T       71   66   71   78   286       $  4576.74
Ntclgh Ohbcp Y Mf    49        60   81   74   72   287       $  4402.38
Pvgrrgsrek*          50        70   67   73   78   288
Amucimndjud          51T       64   72   72   82   290       $  4324.11
Cacehcv              51T       76   65   71   78   290       $  4324.11
Eeexgri              53T       78   65   80   68   291       $  4021.07
Hiqbjtik *           53        71   62   82   76   291
Qzdzub               53T       75   66   76   74   291       $  4021.07
Wdtksskaxdl          53T       60   71   77   83   291       $  4021.07
Meahkg               57        74   63   76   80   293       $  3820.43
Bnvfgv Va*           58        65   77   81   71   294
Dsycqhehea*          58        60   82   78   74   294
Xdlicjk Xmcmwo       58        67   73   80   74   294       $  3800.18
Zqfrpjapm*           58        70   62   80   82   294
Kqdorxrt             62        74   66   81   74   295       $  3800.18
Oghotpf S Ricfbr     63        70   72   78   76   296       $  3677.19
Ggxach Q             64        78   65   75   80   298       $  3623.36
Hgepkz L*            65        83   60   82   74   299
Soaifznb Nxyonp I    66        66   75   82   79   302       $  3581.98
Vpdjxyqt             67        79   64   83   80   306       $  3534.81
Jhdnaynta Eef                  68   62   66        DQ
Avdwzorwrs                     66   61             DQ
Ubbjbric                       63   72             DQ
Zevypzeb F                     62   77             DQ
Usgkmnq                        71   70             DQ
Wctgtwn                        78   64             DQ

Player Name          Place     RD1  RD2  RD3  RD4  TOTAL     Money Won
-----------------------------------------------------------------------
Letjqpdle Na*        1         68   60   62   62   252
Xngexr*              2         61   64   66   63   254
Satuzn Cx Dvlb       3         62   67   68   60   257       $  9437.90
Aamicoi J*           4         70   60   65   65   260
Ubxruwsprai          5         61   63   64   73   261       $  9416.41
Soppvtiyfe Ra        6T        62   76   63   62   263       $  8792.00
Wdause               6T        67   61   61   74   263       $  8792.00
Hhsxhn Cm            8T        66   76   65   60   267       $  8361.34
Ssfvoyem Fhn Dqid    8T        62   72   64   69   267       $  8361.34
Fnmbaqy V            10T       61   61   73   74   269       $  7983.77
Mwjqdj Zu            10T       69   62   75   63   269       $  7983.77
Sdmzohttytn Ypft     12        62   73   71   64   270       $  7829.15
Wcqayce Lgaffu       13        60   76   65   70   271       $  7779.11
Aeugqc               14T       61   82   67   63   273       $  7074.18
Ysdhztq              14T       79   63   68   63   273       $  7074.18
Dgztqaa              16T       64   76   71   63   274       $  6640.15
Grxekx               16T       65   67   70   72   274       $  6640.15
Xffkalrla            18T       66   76   68   65   275       $  6455.54
Ywhmgc               18T       69   72   71   63   275       $  6455.54
Aappzoi*             20        65   71   75   65   276
Cxsdrg               20T       75   62   67   72   276       $  6182.97
Iudfspxzle           20T       65   68   82   61   276       $  6182.97
Omeqlfzksnar*        20        68   74   61   73   276
Ucldakd Rxckea Pu    20T       62   73   78   63   276       $  6182.97
Mfbrnkzvctvbv        25T       66   61   74   76   277       $  6059.15
Vthfiv               25T       63   76   74   64   277       $  6059.15
Wzxsfpditjz Ewfdu    25T       63   64   70   80   277       $  6059.15
Djaebvlxydpotc       28        78   69   62   69   278       $  5429.66
Lemwwlnw             29T       64   70   70   75   279       $  5280.49
Xjjyyfo              29T       66   80   62   71   279       $  5280.49
Aedeto               31        60   82   73   65   280       $  5139.99
Gvbahl*              31        65   74   66   75   280
Ltovorifg*           31        67   74   79   60   280
Zraaaeh *            31        64   70   77   69   280
Mkbobau              35        72   65   68   76   281       $  5092.19
Mutzyvim Wnh         36T       65   69   70   78   282       $  5015.68
Zrphfoivxbvwrbtar    36T       61   66   73   82   282       $  5015.68
Geggin J*            38        67   63   79   74   283
Nbtgxdt Vc T*        38        67   69   75   72   283
Awmucqu              40T       63   80   65   76   284       $  4792.20
Jwgkatbe             40T       70   73   80   61   284       $  4792.20
Krfahnbheb           40T       77   67   60   80   284       $  4792.20
Mxmsmm               40T       61   79   77   67   284       $  4792.20
Rogckdak Fiujf       40T       69   69   68   78   284       $  4792.20
Xorquo Pzr Cym       40T       71   72   77   64   284       $  4792.20
Uhapgfk*             46        72   73   74   67   286
Urhcbmz Y            46T       61   80   79   66   286       $  4674.52
Znluiyfsu            46T       74   64   70   78   286       $  4674.52
Bmdypu*              49        62   69   80   76   287
Zlifxcd*             49        77   63   79   68   287
Mctltuvu             51T       67   68   73   80   288       $  4504.83
Suboed               51T       64   81   60   83   288       $  4504.83
Eicbnlon*            53        60   67   83   79   289
Twhpvg*              53        74   73   82   60   289
Uacbpqj Kndf         53        62   70   80   77   289       $  4428.48
Htaapz B             56T       69   67   76   79   291       $  4396.88
Twltmv T             56T       64   79   65   83   291       $  4396.88
Ggxbpv Lgh           58T       60   80   70   82   292       $  4186.07
Hmhakop Rycx Gt      58T       71   72   79   70   292       $  4186.07
Izaabbwt*            58        71   76   73   72   292
Nviajs               58T       77   69   69   77   292       $  4186.07
Bigfgm               62T       65   76   72   81   294       $  3405.49
Guznwmym S B         62T       68   65   81   80   294       $  3405.49
Wkqubqt*             62        69   77   83   65   294
Pgemjayfwqcat*       65        65   79   68   83   295
Uvjvah               65        62   82   71   80   295       $  3209.80
Pwzvah               67        75   71   70   81   297       $  3203.07
Ydypvmxhuk           68        68   78   72   80   298       $  3090.15
Xldpki               69        64   83   79   75   301       $  3058.71
Rugawc*              70        81   66   73   83   303
Ivqpdznvuj           71        75   68   81   80   304       $  3042.99
Hiddqm                         69   62   72        DQ
Nmmyxdfaq Qj Mxml              68   71             DQ

User avatar
little joey
Guru
Posts: 1080
Joined: Thu Dec 19, 2002 7:37 pm

Post by little joey » Sat Oct 29, 2005 12:24 pm

Thanks Ruben,

I have a program that produces that same output, but it still gets WA on UVA.
Could I ask you to check an I/O of 1000 cases? I put it here: http://home.hccnet.nl/pj.wulff/p207/1000cases.zip

stubbscroll
Experienced poster
Posts: 151
Joined: Tue Nov 16, 2004 7:23 pm
Location: Norway
Contact:

Post by stubbscroll » Sat Oct 29, 2005 1:29 pm

I ran my program against your 1000 test cases, my program gives different output in 5 of the cases. All of them are in the "money won" column, where my program outputs a number 0.01 lower than your program. All of the amounts are exactly x.xx5. It seems your program always rounds them up, and my program always rounds them down (even though I print them normally with printf("$%9.2f",p.m); ).

Here's my output:
http://home.no.net/rspaans/o31.zip

User avatar
little joey
Guru
Posts: 1080
Joined: Thu Dec 19, 2002 7:37 pm

Post by little joey » Sun Oct 30, 2005 12:06 pm

Well, some strange things happen. In some cases my program rounds up, while yours rounds down an vise versa.
F.i. for purse = 108100.00, percentage = 2.4450, the answer is 2643.045; your program prints 2643.04 and my program prints 2643.05.
But for purse = 635000.00, percentage = 1.5875, the answer is 10080.625; your program prints 10080.63 and my program prints 10080.62.
So getting accepted depends on luck and performing the calculations in the same order as the judge solution. This little program:

Code: Select all

#include <stdio.h>

int main(){
   double d,d1,d2,d3;
 
   d2=108100.0;
   d3=2.445;
   d=d2*d3/100.0;
   d1=d2*d3;
   d1/=100.0;
   printf("%9.2lf (%.20lf) %9.2lf (%.20lf)\n",d,d,d1,d1);
   return 0;
   } 
prints:

Code: Select all

  2643.04 (2643.04499999999961801223)   2643.05 (2643.04500000000007275958)
on my Linux box with Athlon 1200, but might print different numbers on other systems.
This problem definitely requires a special judge...

stubbscroll
Experienced poster
Posts: 151
Joined: Tue Nov 16, 2004 7:23 pm
Location: Norway
Contact:

Post by stubbscroll » Tue Nov 01, 2005 6:28 pm

I submitted my solution with this line added:

Code: Select all

if(fabs(p[i].m*1e2 - floor(p[i].m*1e2) - 0.5)<1e-8) return 1/0;
(where p.m is the amount of money to be printed). My program didn't terminate with SIGFPE, so there are no "money won" amounts terribly close to x.xx5, so rounding shouldn't be a problem. Anyway, on my computer (1.4GHz P4, windows 2000, Dev-C++ with GNU C v3.2.3), your test program gives the following result:

Code: Select all

  2643.04 (2643.04499999999960000000)   2643.05 (2643.04500000000010000000)
I also struggled with WA on this problem for a while, but I got AC over half a year ago and I don't remember the details any longer, like what the error was in my WA program. This might or might not help, but here's the I/O I used when I solved the problem:

Input:

Code: Select all

2

1000000.00
18.0000
10.8000
6.8000
4.8000
4.7000
4.6000
4.5000
4.4000
4.3
4.2
4.1
4.0
2.9105
2.8
2.7
1.6
0.335
0.334
0.333
0.332
0.331
0.330
0.329
0.328
0.327
0.326
0.325
0.324
0.323
0.322
0.321
0.320
0.319
0.318
0.317
0.316
0.315
0.314
0.313
0.312
0.311
0.31
0.29
0.28
0.27
0.26
0.25
0.24
0.2395
0.239
0.238
0.237
0.236
0.235
0.234
0.233
0.232
0.231
0.213
0.209
0.208
0.207
0.206
0.205
0.204
0.203
0.202
0.201
0.2020
0.2000
82
WALLY WEDGE          70 70 70 70
SANDY LIE            80 DQ      
SID SHANKER*         90 99 62 61
JIMMY ABLE           69 73 80 DQ
HENRY HACKER         77 70 70 70
TOMMY TWO IRON*      71 72 72 72
BEN BIRDIE           70 74 72 72
NORMAN NIBLICK*      72 72 72 72
LEE THREE WINES      99 99 99 98
JOHNY MELAVO         99 99 99 99
EDDIE EAGLE          71 71 DQ   
RUBEN SPAANS         70 71 80 DQ
EINAR*               99 99 40 49
SPOOKY AMATEUR*      70 70 70 69
TIGER WOODS          73 73 73 73
NICK FALDO           73 73 73 74
SUZANNE PETTERSEN    73 73 73 75
JACK NICKLAUS        73 74 75 76
JACK NICHOLSON       73 74 75 75
SHAWSHANK REDEMPTION 89 89 89 89
DONALD DUCK          70 60 80 99
TUTTA FRA CALCUTTA   88 89 90 91
PERSON 01            81 85 85 86
PERSON 02            82 85 85 87
PERSON 03            83 85 85 88
PERSON 04            84 85 85 89
PERSON 05            85 85 85 90
PERSON 06            86 85 85 91
PERSON 07            87 85 85 92
PERSON 08            88 85 85 93
PERSON 09            89 85 85 94
PERSON 10            60 85 85 95
PERSON 11            61 85 85 96
PERSON 12            62 85 85 97
PERSON 13            63 85 85 98
PERSON 14            64 85 85 99
PERSON 15            65 85 86 86
PERSON 16            66 85 86 86
PERSON 17            67 85 86 86
PERSON 18            68 85 82 86
PERSON 19*           69 85 81 86
PERSON 20            70 85 84 86
PERSON 21            71 85 87 86
PERSON 22            72 85 89 86
PERSON 23            73 85 85 86
PERSON 24            74 85 83 86
PERSON 25            88 88 82 86
PERSON 26            76 85 84 86
PERSON 27            77 85 86 86
PERSON 28            78 85 87 86
PERSON 29            89 94 85 85
PERSON 30            80 75 89 86
PERSON 31            81 96 82 86
PERSON 32            82 94 85 86
PERSON 33            83 79 85 86
PERSON 34            84 88 87 86
PERSON 35            85 85 89 86
PERSON 36            87 85 84 86
PERSON 37            86 85 83 86
PERSON 38            85 85 82 86
PERSON 39            88 85 81 86
PERSON 40            89 85 81 86
PERSON 41*           90 85 82 86
PERSON 42            91 85 83 86
PERSON 43            92 70 84 86
PERSON 44            93 71 85 86
PERSON 45            94 72 86 86
PERSON 46            95 73 87 86
PERSON 47            96 74 88 86
PERSON 48            97 75 89 86
ALLY AKBAR           77 70 70 70
PERSON 50            99 77 89 86
PERSON 51            98 78 88 86
PERSON 52            97 79 87 86
PERSON 53            99 99 50 50
PERSON 54            50 50 99 99
PERSON 55            94 82 84 86
PERSON 56            93 83 83 86
PERSON 57            92 84 82 86
PERSON 58            91 85 81 86
PERSON 59            90 86 82 86
PERSON 60            89 88 84 86

1000000.00
18.0000
10.8000
6.8000
4.8000
4.7000
4.6000
4.5000
4.4000
4.3
4.2
4.1
4.0
2.9105
2.8
2.7
1.6
0.335
0.334
0.333
0.332
0.331
0.330
0.329
0.328
0.327
0.326
0.325
0.324
0.323
0.322
0.321
0.320
0.319
0.318
0.317
0.316
0.315
0.314
0.313
0.312
0.311
0.31
0.29
0.28
0.27
0.26
0.25
0.24
0.2395
0.239
0.238
0.237
0.236
0.235
0.234
0.233
0.232
0.231
0.213
0.209
0.208
0.207
0.206
0.205
0.204
0.203
0.202
0.201
0.2020
0.2000
77
A PERSON             69 69 82 86
EIN POERSON          71 71 30 30
PERSON 01            70 70 70 71
PER BOASSON*         69 69 69 73
MEE MEE              70 70 70 71
PERSON 02            70 70 70 71
PERSON 72            70 70 70 71
PERSON 88            70 70 70 71
PERSON 03            70 70 70 69
PERSON 03*           70 70 70 70
PERSON 04            70 70 70 70
PERSON 05            70 70 70 70
PERSON 06            70 70 70 70
PERSON 07            70 70 70 70
PERSON 08            70 70 70 70
PERSON 09            70 70 70 70
PERSON 10            70 70 70 70
PERSON 01            70 70 70 70
PERSON 02            70 70 70 70
PERSON 03            70 70 70 70
PERSON 04            70 70 70 70
PERSON 05            70 70 70 70
PERSON 06            70 70 70 70
PERSON 07            70 70 70 70
PERSON 08            70 70 70 70
PERSON 09            70 70 70 70
PERSON 10            70 70 70 70
PERSON 01            70 70 70 70
PERSON 02            70 70 70 70
PERSON 03            70 70 70 70
PERSON 04            70 70 70 70
PERSON 05            70 70 70 70
PERSON 06            70 70 70 70
PERSON 07            70 70 70 70
PERSON 08            70 70 70 70
PERSON 09            70 70 70 70
PERSON 10            70 70 70 70
PERSON 01            70 70 70 70
PERSON 02            70 70 70 70
PERSON 03            70 70 70 70
PERSON 04            70 70 70 70
PERSON 05            70 70 70 70
PERSON 06            70 70 70 70
PERSON 07            70 70 70 70
PERSON 08            70 70 70 70
PERSON 09            70 70 70 70
PERSON 10            70 70 70 70
PERSON 01            70 70 70 70
PERSON 02            70 70 70 70
PERSON 03            70 70 70 70
PERSON 04            70 70 70 70
PERSON 05            70 70 70 70
PERSON 06            70 70 70 70
PERSON 07            70 70 70 70
PERSON 08            70 70 70 70
PERSON 09            70 70 70 70
PERSON 10            70 70 70 70
PERSON 01            70 70 70 70
PERSON 02            70 70 70 70
PERSON 03            70 70 70 70
PERSON 04            70 70 70 70
PERSON 05            70 70 70 70
PERSON 06            70 70 70 70
PERSON 07            70 70 70 70
PERSON 08            70 70 70 70
PERSON 09            70 70 70 70
PERSON 10            70 70 70 70
PERSON 01            70 70 70 70
PERSON 02            70 70 70 70
PERSON 03            70 70 70 70
PERSON 04            70 70 70 70
PERSON 05            70 70 70 70
PERSON 06            70 70 70 70
PERSON 07            70 70 70 70
PERSON 08            70 70 70 70
PERSON 09            70 70 70 70
PERSON 10            70 70 70 70
Output:

Code: Select all

Player Name          Place     RD1  RD2  RD3  RD4  TOTAL     Money Won
-----------------------------------------------------------------------
SPOOKY AMATEUR*      1         70   70   70   69   279
WALLY WEDGE          2         70   70   70   70   280       $180000.00
ALLY AKBAR           3T        77   70   70   70   287       $ 88000.00
HENRY HACKER         3T        77   70   70   70   287       $ 88000.00
TOMMY TWO IRON*      3         71   72   72   72   287
BEN BIRDIE           6         70   74   72   72   288       $ 48000.00
NORMAN NIBLICK*      6         72   72   72   72   288
TIGER WOODS          8         73   73   73   73   292       $ 47000.00
NICK FALDO           9         73   73   73   74   293       $ 46000.00
SUZANNE PETTERSEN    10        73   73   73   75   294       $ 45000.00
JACK NICHOLSON       11        73   74   75   75   297       $ 44000.00
JACK NICKLAUS        12T       73   74   75   76   298       $ 42500.00
PERSON 54            12T       50   50   99   99   298       $ 42500.00
DONALD DUCK          14        70   60   80   99   309       $ 41000.00
PERSON 18            15        68   85   82   86   321       $ 40000.00
PERSON 19*           15        69   85   81   86   321
PERSON 15            17        65   85   86   86   322       $ 29105.00
PERSON 16            18        66   85   86   86   323       $ 28000.00
PERSON 17            19        67   85   86   86   324       $ 27000.00
PERSON 10            20T       60   85   85   95   325       $  9675.00
PERSON 20            20T       70   85   84   86   325       $  9675.00
PERSON 11            22        61   85   85   96   327       $  3340.00
PERSON 24            23        74   85   83   86   328       $  3330.00
PERSON 12            24T       62   85   85   97   329       $  3310.00
PERSON 21            24T       71   85   87   86   329       $  3310.00
PERSON 23            24T       73   85   85   86   329       $  3310.00
PERSON 30            27        80   75   89   86   330       $  3290.00
PERSON 13            28T       63   85   85   98   331       $  3275.00
PERSON 26            28T       76   85   84   86   331       $  3275.00
PERSON 22            30T       72   85   89   86   332       $  3255.00
PERSON 43            30T       92   70   84   86   332       $  3255.00
PERSON 14            32T       64   85   85   99   333       $  3235.00
PERSON 33            32T       83   79   85   86   333       $  3235.00
PERSON 27            34        77   85   86   86   334       $  3220.00
PERSON 44            35        93   71   85   86   335       $  3210.00
PERSON 28            36        78   85   87   86   336       $  3200.00
PERSON 01            37        81   85   85   86   337       $  3190.00
PERSON 38            38T       85   85   82   86   338       $  3175.00
PERSON 45            38T       94   72   86   86   338       $  3175.00
PERSON 02            40        82   85   85   87   339       $  3160.00
PERSON 37            41T       86   85   83   86   340       $  3145.00
PERSON 39            41T       88   85   81   86   340       $  3145.00
PERSON 03            43T       83   85   85   88   341       $  3120.00
PERSON 40            43T       89   85   81   86   341       $  3120.00
PERSON 46            43T       95   73   87   86   341       $  3120.00
PERSON 36            46        87   85   84   86   342       $  3100.00
PERSON 04            47T       84   85   85   89   343       $  2850.00
PERSON 41*           47        90   85   82   86   343
PERSON 58            47T       91   85   81   86   343       $  2850.00
PERSON 25            50T       88   88   82   86   344       $  2550.00
PERSON 47            50T       96   74   88   86   344       $  2550.00
PERSON 57            50T       92   84   82   86   344       $  2550.00
PERSON 59            50T       90   86   82   86   344       $  2550.00
PERSON 05            54T       85   85   85   90   345       $  2379.00
PERSON 34            54T       84   88   87   86   345       $  2379.00
PERSON 35            54T       85   85   89   86   345       $  2379.00
PERSON 42            54T       91   85   83   86   345       $  2379.00
PERSON 56            54T       93   83   83   86   345       $  2379.00
PERSON 55            59        94   82   84   86   346       $  2350.00
PERSON 06            60T       86   85   85   91   347       $  2330.00
PERSON 32            60T       82   94   85   86   347       $  2330.00
PERSON 48            60T       97   75   89   86   347       $  2330.00
PERSON 07            63T       87   85   85   92   349       $  2220.00
PERSON 52            63T       97   79   87   86   349       $  2220.00
PERSON 51            65        98   78   88   86   350       $  2090.00
PERSON 08            66T       88   85   85   93   351       $  2075.00
PERSON 50            66T       99   77   89   86   351       $  2075.00
PERSON 09            68        89   85   85   94   353       $  2060.00
RUBEN SPAANS                   70   71   80        DQ
JIMMY ABLE                     69   73   80        DQ
EDDIE EAGLE                    71   71             DQ

Player Name          Place     RD1  RD2  RD3  RD4  TOTAL     Money Won
-----------------------------------------------------------------------
PERSON 03            1         70   70   70   69   279       $180000.00
PER BOASSON*         2         69   69   69   73   280
PERSON 01            2T        70   70   70   70   280       $ 12178.81
PERSON 01            2T        70   70   70   70   280       $ 12178.81
PERSON 01            2T        70   70   70   70   280       $ 12178.81
PERSON 01            2T        70   70   70   70   280       $ 12178.81
PERSON 01            2T        70   70   70   70   280       $ 12178.81
PERSON 01            2T        70   70   70   70   280       $ 12178.81
PERSON 02            2T        70   70   70   70   280       $ 12178.81
PERSON 02            2T        70   70   70   70   280       $ 12178.81
PERSON 02            2T        70   70   70   70   280       $ 12178.81
PERSON 02            2T        70   70   70   70   280       $ 12178.81
PERSON 02            2T        70   70   70   70   280       $ 12178.81
PERSON 02            2T        70   70   70   70   280       $ 12178.81
PERSON 03            2T        70   70   70   70   280       $ 12178.81
PERSON 03            2T        70   70   70   70   280       $ 12178.81
PERSON 03            2T        70   70   70   70   280       $ 12178.81
PERSON 03            2T        70   70   70   70   280       $ 12178.81
PERSON 03            2T        70   70   70   70   280       $ 12178.81
PERSON 03            2T        70   70   70   70   280       $ 12178.81
PERSON 03*           2         70   70   70   70   280
PERSON 04            2T        70   70   70   70   280       $ 12178.81
PERSON 04            2T        70   70   70   70   280       $ 12178.81
PERSON 04            2T        70   70   70   70   280       $ 12178.81
PERSON 04            2T        70   70   70   70   280       $ 12178.81
PERSON 04            2T        70   70   70   70   280       $ 12178.81
PERSON 04            2T        70   70   70   70   280       $ 12178.81
PERSON 04            2T        70   70   70   70   280       $ 12178.81
PERSON 05            2T        70   70   70   70   280       $ 12178.81
PERSON 05            2T        70   70   70   70   280       $ 12178.81
PERSON 05            2T        70   70   70   70   280       $ 12178.81
PERSON 05            2T        70   70   70   70   280       $ 12178.81
PERSON 05            2T        70   70   70   70   280       $ 12178.81
PERSON 05            2T        70   70   70   70   280       $ 12178.81
PERSON 05            2T        70   70   70   70   280       $ 12178.81
PERSON 06            2T        70   70   70   70   280       $ 12178.81
PERSON 06            2T        70   70   70   70   280       $ 12178.81
PERSON 06            2T        70   70   70   70   280       $ 12178.81
PERSON 06            2T        70   70   70   70   280       $ 12178.81
PERSON 06            2T        70   70   70   70   280       $ 12178.81
PERSON 06            2T        70   70   70   70   280       $ 12178.81
PERSON 06            2T        70   70   70   70   280       $ 12178.81
PERSON 07            2T        70   70   70   70   280       $ 12178.81
PERSON 07            2T        70   70   70   70   280       $ 12178.81
PERSON 07            2T        70   70   70   70   280       $ 12178.81
PERSON 07            2T        70   70   70   70   280       $ 12178.81
PERSON 07            2T        70   70   70   70   280       $ 12178.81
PERSON 07            2T        70   70   70   70   280       $ 12178.81
PERSON 07            2T        70   70   70   70   280       $ 12178.81
PERSON 08            2T        70   70   70   70   280       $ 12178.81
PERSON 08            2T        70   70   70   70   280       $ 12178.81
PERSON 08            2T        70   70   70   70   280       $ 12178.81
PERSON 08            2T        70   70   70   70   280       $ 12178.81
PERSON 08            2T        70   70   70   70   280       $ 12178.81
PERSON 08            2T        70   70   70   70   280       $ 12178.81
PERSON 08            2T        70   70   70   70   280       $ 12178.81
PERSON 09            2T        70   70   70   70   280       $ 12178.81
PERSON 09            2T        70   70   70   70   280       $ 12178.81
PERSON 09            2T        70   70   70   70   280       $ 12178.81
PERSON 09            2T        70   70   70   70   280       $ 12178.81
PERSON 09            2T        70   70   70   70   280       $ 12178.81
PERSON 09            2T        70   70   70   70   280       $ 12178.81
PERSON 09            2T        70   70   70   70   280       $ 12178.81
PERSON 10            2T        70   70   70   70   280       $ 12178.81
PERSON 10            2T        70   70   70   70   280       $ 12178.81
PERSON 10            2T        70   70   70   70   280       $ 12178.81
PERSON 10            2T        70   70   70   70   280       $ 12178.81
PERSON 10            2T        70   70   70   70   280       $ 12178.81
PERSON 10            2T        70   70   70   70   280       $ 12178.81
PERSON 10            2T        70   70   70   70   280       $ 12178.81
MEE MEE              71T       70   70   70   71   281       $   804.00
PERSON 01            71T       70   70   70   71   281       $   804.00
PERSON 02            71T       70   70   70   71   281       $   804.00
PERSON 72            71T       70   70   70   71   281       $   804.00
PERSON 88            71T       70   70   70   71   281       $   804.00
A PERSON             76        69   69   82   86   306

User avatar
little joey
Guru
Posts: 1080
Joined: Thu Dec 19, 2002 7:37 pm

Post by little joey » Tue Nov 01, 2005 7:07 pm

Finaly accepted! Thanks a million, Ruben!

Indeed, rounding wasn't the issue at all; I was reading the scores from the wrong places one the line :oops:. If the problem had a proper sample input, this would never have happened. In the sample input I have given above, all scores are one place too far to the left, stubbscroll's input is correct.

sclo
Guru
Posts: 519
Joined: Mon Jan 23, 2006 10:45 pm
Location: Vancouver, BC, Canada
Contact:

Post by sclo » Sat Mar 18, 2006 9:50 am

I got WA for many times, it turns out that the error in my code is that I print T for ties even if the players are not awarded any prize money. It took me a while to find out because it isn't covered on the test cases above, and I never thought of testing that particular thing. The lack of test cases sure is a problem here.

stubbscroll
Experienced poster
Posts: 151
Joined: Tue Nov 16, 2004 7:23 pm
Location: Norway
Contact:

Post by stubbscroll » Tue Apr 17, 2007 8:51 pm

Now that P.E.'s no longer count as AC, I'm going back and fixing all P.E.'s. In case some people have the same problems as me, I'll tell about my error. I misprinted total scores lower than 100.

Wrong:

Code: Select all

Player Name          Place     RD1  RD2  RD3  RD4  TOTAL     Money Won
-----------------------------------------------------------------------
HMLIVZA              1         22   26   25   23    96       $ 90306.61
DYCXCZ               2         24   22   29   29   104       $ 89581.90
Correct:

Code: Select all

Player Name          Place     RD1  RD2  RD3  RD4  TOTAL     Money Won
-----------------------------------------------------------------------
HMLIVZA              1         22   26   25   23   96        $ 90306.61
DYCXCZ               2         24   22   29   29   104       $ 89581.90

r2ro
New poster
Posts: 38
Joined: Thu Sep 25, 2008 9:26 am

Re: 207 - PGA Tour Prize Money

Post by r2ro » Thu Aug 21, 2014 6:01 am

Hi everyone,

I'm trying to solve this problem but I keep getting WA. I've tested my code with the sample input and outputs here and they seem to match. Anymore test cases?

I'm willing to post my code if it would help.

brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: 207 - PGA Tour Prize Money

Post by brianfry713 » Thu Aug 21, 2014 7:30 pm

r2ro wrote:I'm willing to post my code if it would help.
yes
Check input and AC output for thousands of problems on uDebug!

r2ro
New poster
Posts: 38
Joined: Thu Sep 25, 2008 9:26 am

Re: 207 - PGA Tour Prize Money

Post by r2ro » Sat Aug 23, 2014 4:04 pm

Code: Select all

Accepted
This gives me WA
Last edited by r2ro on Sun Sep 28, 2014 2:49 pm, edited 1 time in total.

r2ro
New poster
Posts: 38
Joined: Thu Sep 25, 2008 9:26 am

Re: 207 - PGA Tour Prize Money

Post by r2ro » Thu Sep 11, 2014 5:05 am

Hello, thanks. I've attempted to solve this again, and I made some changes with the input. (It seems that the money was one space too far to the left)

Input:

Code: Select all

2

289383.00
2.5532
2.5037
2.4567
2.4440
2.3822
2.3659
2.3177
2.2960
2.2951
2.2941
2.2624
2.0618
2.0533
2.0399
1.9831
1.9433
1.9419
1.9186
1.9108
1.8476
1.8471
1.7967
1.7953
1.7946
1.7702
1.6996
1.6977
1.6898
1.6873
1.6390
1.6275
1.6201
1.5887
1.5744
1.5213
1.5187
1.4698
1.4473
1.3924
1.3289
1.3202
1.3132
1.3132
1.2707
1.2521
1.2378
1.2215
1.2191
1.1902
1.1645
1.0756
1.0573
0.9797
0.9643
0.9421
0.8594
0.6873
0.6180
0.6090
0.5171
0.4613
0.4503
0.4472
0.4448
0.3400
0.3232
0.2278
0.0550
0.0471
0.0133
140
Apqfwk Konk*         79 70 66 63
Uqcljjsd             69 64 76 75
Rrbljpsw             71 76 80 75
Rwsofsn H Sx         DQ
Cacehcv              76 65 71 78
Pqpxrjiychcodm Wf*   77 62 81 66
Ytdlcgwa H           73 82 60 64
Gspqoqbgn Xl         64 67 71 75
Lnsadeu*             66 79 72 78
Tokyxh Hvxrl         72 74 70 DQ
Gmlejuw              79 DQ
Menmey               63 72 62 71
Xloghim Vjvypueue    73 78 67 68
Pggkbb               63 65 66 68
Mludfy               72 80 62 64
Oobppll              78 83 74 80
Hdcnvw               67 64 71 69
Hauxns Giq           77 81 69 75
Jsuyibbs             78 68 61 70
Zevypzeb F           62 77 DQ
Xtigsih Z            66 75 62 65
Xztqrssy*            77 61 66 79
Pddbuobwr            82 79 75 77
Geiqvdiwawp Glep*    DQ
Qzdzub               75 66 76 74
Pqwuziodyb Z*        77 71 63 83
Nunnesp              78 71 69 73
Bknhkw Ncrd*         71 66 66 64
Rfwcsf E J           62 78 80 63
Meahkg               74 63 76 80
Ymqpxh               68 70 67 65
Hbasjego Ti*         73 60 65 77
Kqdorxrt             74 66 81 74
Xlpgdif Qpn E        61 76 77 63
Wctgtwn              78 64 DQ
Unublm Tk *          83 81 60 75
Etvhqnj*             74 70 69 60
Zqfrpjapm*           70 62 80 82
Jnewxg               64 66 65 67
Wnnvbwke             83 78 75 63
Wujbqxi O            60 67 73 71
Dsycqhehea*          60 82 78 74
Bnvfgv Va*           65 77 81 71
Ncqgjlo              74 70 DQ
Etcmkbotvgvhnxrdm    82 65 60 81
Heyent               70 DQ
Qcrglu*              83 64 79 73
Jrqopug              81 72 75 76
Swybgf               77 79 74 71
Rlyauu               78 63 81 62
Lffrkebif*           75 79 71 81
Xcxmjc *             67 65 76 65
Ebhnlmm              63 73 61 80
Eeexgri              78 65 80 68
Vrftwa               83 83 80 71
Srxajjc Ks S         83 75 74 70
Njulkfm              DQ
Famespjzr Ys Yv      68 67 61 75
Cnvbma*              63 DQ
Wraatz*              74 63 65 62
Ncvkelzhnnpgnw*      66 76 78 62
Xpmmsbpgmz Tnszl*    81 77 76 66
Lvybwxtg             62 70 60 61
Szkhfznol F M*       66 62 74 64
Fohesymw*            64 69 72 75
Jftqtwai M Pg        80 66 61 76
Wtbsee               75 61 69 61
Vpdjxyqt             79 64 83 80
Ofremgr K            69 81 79 80
Jhdnaynta Eef        68 62 66 DQ
Vtqtkfy Lq           DQ
Yqdntdrle*           67 82 66 77
Epxchvy G            71 DQ
Swmeayi              74 70 DQ
Ssfxtg X*            72 70 67 60
Djqnqc               81 62 72 71
Vmwnuunlv *          DQ
Qandly               64 DQ
Aosnlnc              68 DQ
Moiawc W*            70 60 67 73
Naikam*              63 64 74 76
Ggxach Q             78 65 75 80
Hvokii*              74 83 61 61
Soaifznb Nxyonp I    66 75 82 79
Rxkfhii Iq           70 75 72 77
Nzxtzq               DQ
Atycbmwned           76 75 65 72
Pvgrrgsrek*          70 67 73 78
Qawixekf             82 68 71 77
Mbpbeguquejhj Fvd    61 76 68 63
Tbplyzis Wrurg       74 68 79 60
Tqiktx               74 67 66 62
Ubbjbric             63 72 DQ
Vdkujcshk Zwj        64 81 73 83
Nmkjgnmu             70 80 62 61
Ugjtfi               71 73 83 83
Amucimndjud          64 72 72 82
Vjaxrnchq*           66 82 68 62
Vslqprsh             71 66 71 78
Uyyfquzmeyfskv       61 77 64 61
Xjndjrr*             71 76 78 74
Ayshwx Z Ufmnq       64 66 71 70
Xdlicjk Xmcmwo       67 73 80 74
Ugfrtequ             79 76 77 63
Osaodqkr T Bq*       72 80 73 65
Uiokcowxnq K         73 64 64 78
Gaglod Dz            68 70 60 63
Yityjrxko            63 70 72 72
Ojfckyrkku Cau       77 DQ
Jxkixdjt*            66 69 75 63
Badvfuufkupf Y       72 81 62 78
Aapahjelq*           72 76 72 76
Leinkof              60 60 60 71
Mxkynwqw             61 78 65 78
Usgkmnq              71 70 DQ
Hoqakqglf            67 DQ
Zgsplowgi            65 73 82 61
Wdtksskaxdl          60 71 77 83
Rumbme               60 73 64 60
Ntclgh Ohbcp Y Mf    60 81 74 72
Hiqbjtik *           71 62 82 76
Abhsli Vqa Yr*       83 73 66 70
Hgepkz L*            83 60 82 74
Tdoqiss V*           DQ
Vzptlpoy             67 80 DQ
Aosaghfneti Cznhp*   74 74 80 71
Uujvwtbrdbhu*        79 82 83 72
Qinntqhknwsaq        82 79 61 61
Ermrny W Phanphl*    67 DQ
Avdwzorwrs           66 61 DQ
Vtmzzc Vfyv          77 79 61 64
Ghbctc X Zpzfc Qz    DQ
Tlrsppij             61 65 75 65
Nmdduribs Ocrm Yd*   64 81 64 61
Dnobqc               64 66 65 78
Pxcaniqx             DQ
Pymqor*              66 65 64 60
Oghotpf S Ricfbr     70 72 78 76
Dfnnzckps            64 72 62 66
Ungfzo               73 67 67 60

320788.00
2.9421
2.9354
2.7666
2.7149
2.6625
2.5505
2.5259
2.4517
2.4406
2.4250
2.2774
2.1331
2.0760
2.0639
2.0233
2.0015
1.9395
1.9308
1.9120
1.9002
1.8913
1.8750
1.6926
1.6782
1.6140
1.6023
1.5874
1.5767
1.5504
1.5406
1.5167
1.4919
1.4724
1.4721
1.4696
1.4604
1.4540
1.4108
1.3978
1.3805
1.3709
1.3704
1.3611
1.3044
1.2493
1.0667
1.0565
1.0006
0.9985
0.9633
0.9535
0.9486
0.9364
0.8549
0.8376
0.7343
0.7219
0.6010
0.5943
0.5868
0.5787
0.4608
0.4251
0.3804
0.2750
0.2723
0.1436
0.1081
0.0245
0.0129
123
Aamicoi J*           70 60 65 65
Dgztqaa              64 76 71 63
Letjqpdle Na*        68 60 62 62
Ydypvmxhuk           68 78 72 80
Uvjvah               62 82 71 80
Ywhmgc               69 72 71 63
Mxwnei               80 82 83 73
Pwzvah               75 71 70 81
Xngexr*              61 64 66 63
Obiokvk              77 71 66 75
Omeqlfzksnar*        68 74 61 73
Twhpvg*              74 73 82 60
Ubxruwsprai          61 63 64 73
Htaapz B             69 67 76 79
Mwjqdj Zu            69 62 75 63
Soppvtiyfe Ra        62 76 63 62
Mfbrnkzvctvbv        66 61 74 76
Pgemjayfwqcat*       65 79 68 83
Ttncjtr              78 72 65 73
Jjfkbo*              DQ
Enrxih*              DQ
Nbtgxdt Vc T*        67 69 75 72
Xorquo Pzr Cym       71 72 77 64
Vthfiv               63 76 74 64
Etwifts Gb           72 DQ
Vzzscq               67 81 80 80
Eqtmyk               75 77 63 79
Znluiyfsu            74 64 70 78
Sdmzohttytn Ypft     62 73 71 64
Hpsdifr              80 77 67 70
Hhsxhn Cm            66 76 65 60
Zrphfoivxbvwrbtar    61 66 73 82
Grxekx               65 67 70 72
Qwspdjau Quzsp S *   83 82 64 80
Wbtpqenlggeiio*      DQ
Zlifxcd*             77 63 79 68
Nviajs               77 69 69 77
Mxmsmm               61 79 77 67
Xofbxmlr             76 81 73 62
Urhcbmz Y            61 80 79 66
Aappzoi*             65 71 75 65
Dioytn Eev Jvt       83 71 65 83
Znfdcm Sd Hmcbwvb*   65 DQ
Dgacjp               80 72 77 80
Ssfvoyem Fhn Dqid    62 72 64 69
Ivqpdznvuj           75 68 81 80
Hlrqgjj Z Spg Fe     DQ
Iayrojh              83 79 61 82
Ysdhztq              79 63 68 63
Xxvgxnv Aja Wwl      74 74 82 61
Hiddqm               69 62 72 DQ
Rogckdak Fiujf       69 69 68 78
Fnmbaqy V            61 61 73 74
Aedeto               60 82 73 65
Uacbpqj Kndf         62 70 80 77
Stbkjqscrx Mqt*      81 74 69 68
Geggin J*            67 63 79 74
Kfhfyl Lp            70 83 63 74
Nyimezmrt            80 72 81 61
Iudfspxzle           65 68 82 61
Ltovorifg*           67 74 79 60
Zdondv               70 82 75 76
Zraaaeh *            64 70 77 69
Wdause               67 61 61 74
Xffkalrla            66 76 68 65
Ggxbpv Lgh           60 80 70 82
Eicbnlon*            60 67 83 79
Wzxsfpditjz Ewfdu    63 64 70 80
Lemwwlnw             64 70 70 75
Zxoety Vrv Lll Gf    DQ
Aatpdog              76 73 66 61
Uhapgfk*             72 73 74 67
Bmdypu*              62 69 80 76
Suboed               64 81 60 83
Ghcydsmbf*           83 67 75 72
Awmucqu              63 80 65 76
Mhfoogxhw Ijmuszf    72 76 73 62
Whwere E*            DQ
Irqvxrwbpzvz         68 81 76 80
Vhnwal               73 77 68 80
Gxjxylr              83 73 83 63
Nrwcgl               82 72 71 76
Mctltuvu             67 68 73 80
Nmmyxdfaq Qj Mxml    68 71 DQ
Djaebvlxydpotc       78 69 62 69
Wkqubqt*             69 77 83 65
Twltmv T             64 79 65 83
Vlofya               76 77 77 79
Iljkgh Pt Rp Jes     83 66 75 83
Yseenu               78 71 72 80
Xldpki               64 83 79 75
Bezoawkku            75 81 82 63
Rugawc*              81 66 73 83
Cxsdrg               75 62 67 72
Bgkxin Btvb*         73 82 DQ
Sdnslp               DQ
Kkovqp               81 76 78 82
Aeugqc               61 82 67 63
Nlcdaj               76 80 78 77
Izaabbwt*            71 76 73 72
Aeovvd Llg*          77 81 81 DQ
Krfahnbheb           77 67 60 80
Jbiwup*              68 DQ
Guznwmym S B         68 65 81 80
Xjjyyfo              66 80 62 71
Igzrtr*              68 DQ
Ucldakd Rxckea Pu    62 73 78 63
Mutzyvim Wnh         65 69 70 78
Gvbahl*              65 74 66 75
Vgpvjcu              73 81 60 79
Satuzn Cx Dvlb       62 67 68 60
Pttuviekf*           81 67 80 76
Bigfgm               65 76 72 81
Iefojinjj            72 78 80 DQ
Guydou*              77 74 82 71
Bkqlmzosccxw*        79 71 65 74
Evzevp               76 72 68 71
Hmhakop Rycx Gt      71 72 79 70
Mkbobau              72 65 68 76
Trgutpl              80 72 DQ
Wcqayce Lgaffu       60 76 65 70
Jwgkatbe             70 73 80 61
Vjnwygem             DQ
Output:

Code: Select all

Player Name          Place     RD1  RD2  RD3  RD4  TOTAL     Money Won
-----------------------------------------------------------------------
Leinkof              1         60   60   60   71   251       $  7388.53
Lvybwxtg             2         62   70   60   61   253       $  7245.28
Pymqor*              3         66   65   64   60   255
Rumbme               4         60   73   64   60   257       $  7109.27
Gaglod Dz            5         68   70   60   63   261       $  7072.52
Jnewxg               6T        64   66   65   67   262       $  6870.10
Pggkbb               6T        63   65   66   68   262       $  6870.10
Uyyfquzmeyfskv       8         61   77   64   61   263       $  6707.03
Dfnnzckps            9         64   72   62   66   264       $  6644.23
Wraatz*              9         74   63   65   62   264
Szkhfznol F M*       11        66   62   74   64   266
Tlrsppij             11T       61   65   75   65   266       $  6640.18
Wtbsee               11T       75   61   69   61   266       $  6640.18
Bknhkw Ncrd*         14        71   66   66   64   267
Ungfzo               14        73   67   67   60   267       $  6547.00
Mbpbeguquejhj Fvd    16T       61   76   68   63   268       $  5937.17
Menmey               16T       63   72   62   71   268       $  5937.17
Xtigsih Z            16T       66   75   62   65   268       $  5937.17
Ssfxtg X*            19        72   70   67   60   269
Tqiktx               19        74   67   66   62   269       $  5738.75
Moiawc W*            21        70   60   67   73   270
Ymqpxh               21        68   70   67   65   270       $  5623.58
Ayshwx Z Ufmnq       23T       64   66   71   70   271       $  5511.95
Famespjzr Ys Yv      23T       68   67   61   75   271       $  5511.95
Hdcnvw               23T       67   64   71   69   271       $  5511.95
Wujbqxi O            23T       60   67   73   71   271       $  5511.95
Dnobqc               27        64   66   65   78   273       $  5345.19
Jxkixdjt*            27        66   69   75   63   273
Xcxmjc *             27        67   65   76   65   273
Hbasjego Ti*         30        73   60   65   77   275
Ebhnlmm              31T       63   73   61   80   277       $  5177.64
Gspqoqbgn Xl         31T       64   67   71   75   277       $  5177.64
Naikam*              31        63   64   74   76   277
Xlpgdif Qpn E        31T       61   76   77   63   277       $  5177.64
Yityjrxko            31T       63   70   72   72   277       $  5177.64
Uiokcowxnq K         36        73   64   64   78   279       $  4918.35
Fohesymw*            37        64   69   72   75   280
Tbplyzis Wrurg       38T       74   68   79   60   281       $  4901.42
Zgsplowgi            38T       65   73   82   61   281       $  4901.42
Mxkynwqw             40        61   78   65   78   282       $  4882.76
Ncvkelzhnnpgnw*      40        66   76   78   62   282
Rfwcsf E J           42        62   78   80   63   283       $  4742.99
Xztqrssy*            42        77   61   66   79   283
Rlyauu               44T       78   63   81   62   284       $  4699.00
Uqcljjsd             44T       69   64   76   75   284       $  4699.00
Djqnqc               46T       81   62   72   71   286       $  4576.74
Pqpxrjiychcodm Wf*   46        77   62   81   66   286
Vslqprsh             46T       71   66   71   78   286       $  4576.74
Ntclgh Ohbcp Y Mf    49        60   81   74   72   287       $  4402.38
Pvgrrgsrek*          50        70   67   73   78   288
Amucimndjud          51T       64   72   72   82   290       $  4324.11
Cacehcv              51T       76   65   71   78   290       $  4324.11
Eeexgri              53T       78   65   80   68   291       $  4021.07
Hiqbjtik *           53        71   62   82   76   291
Qzdzub               53T       75   66   76   74   291       $  4021.07
Wdtksskaxdl          53T       60   71   77   83   291       $  4021.07
Meahkg               57        74   63   76   80   293       $  3820.43
Bnvfgv Va*           58        65   77   81   71   294
Dsycqhehea*          58        60   82   78   74   294
Xdlicjk Xmcmwo       58        67   73   80   74   294       $  3800.18
Zqfrpjapm*           58        70   62   80   82   294
Kqdorxrt             62        74   66   81   74   295       $  3800.18
Oghotpf S Ricfbr     63        70   72   78   76   296       $  3677.19
Ggxach Q             64        78   65   75   80   298       $  3623.36
Hgepkz L*            65        83   60   82   74   299
Soaifznb Nxyonp I    66        66   75   82   79   302       $  3581.98
Vpdjxyqt             67        79   64   83   80   306       $  3534.81
Jhdnaynta Eef                  68   62   66        DQ
Avdwzorwrs                     66   61             DQ
Ubbjbric                       63   72             DQ
Zevypzeb F                     62   77             DQ
Usgkmnq                        71   70             DQ
Wctgtwn                        78   64             DQ

Player Name          Place     RD1  RD2  RD3  RD4  TOTAL     Money Won
-----------------------------------------------------------------------
Letjqpdle Na*        1         68   60   62   62   252
Xngexr*              2         61   64   66   63   254
Satuzn Cx Dvlb       3         62   67   68   60   257       $  9437.90
Aamicoi J*           4         70   60   65   65   260
Ubxruwsprai          5         61   63   64   73   261       $  9416.41
Soppvtiyfe Ra        6T        62   76   63   62   263       $  8792.00
Wdause               6T        67   61   61   74   263       $  8792.00
Hhsxhn Cm            8T        66   76   65   60   267       $  8361.34
Ssfvoyem Fhn Dqid    8T        62   72   64   69   267       $  8361.34
Fnmbaqy V            10T       61   61   73   74   269       $  7983.77
Mwjqdj Zu            10T       69   62   75   63   269       $  7983.77
Sdmzohttytn Ypft     12        62   73   71   64   270       $  7829.15
Wcqayce Lgaffu       13        60   76   65   70   271       $  7779.11
Aeugqc               14T       61   82   67   63   273       $  7074.18
Ysdhztq              14T       79   63   68   63   273       $  7074.18
Dgztqaa              16T       64   76   71   63   274       $  6640.15
Grxekx               16T       65   67   70   72   274       $  6640.15
Xffkalrla            18T       66   76   68   65   275       $  6455.54
Ywhmgc               18T       69   72   71   63   275       $  6455.54
Aappzoi*             20        65   71   75   65   276
Cxsdrg               20T       75   62   67   72   276       $  6182.97
Iudfspxzle           20T       65   68   82   61   276       $  6182.97
Omeqlfzksnar*        20        68   74   61   73   276
Ucldakd Rxckea Pu    20T       62   73   78   63   276       $  6182.97
Mfbrnkzvctvbv        25T       66   61   74   76   277       $  6059.15
Vthfiv               25T       63   76   74   64   277       $  6059.15
Wzxsfpditjz Ewfdu    25T       63   64   70   80   277       $  6059.15
Djaebvlxydpotc       28        78   69   62   69   278       $  5429.66
Lemwwlnw             29T       64   70   70   75   279       $  5280.49
Xjjyyfo              29T       66   80   62   71   279       $  5280.49
Aedeto               31        60   82   73   65   280       $  5139.99
Gvbahl*              31        65   74   66   75   280
Ltovorifg*           31        67   74   79   60   280
Zraaaeh *            31        64   70   77   69   280
Mkbobau              35        72   65   68   76   281       $  5092.19
Mutzyvim Wnh         36T       65   69   70   78   282       $  5015.68
Zrphfoivxbvwrbtar    36T       61   66   73   82   282       $  5015.68
Geggin J*            38        67   63   79   74   283
Nbtgxdt Vc T*        38        67   69   75   72   283
Awmucqu              40T       63   80   65   76   284       $  4792.20
Jwgkatbe             40T       70   73   80   61   284       $  4792.20
Krfahnbheb           40T       77   67   60   80   284       $  4792.20
Mxmsmm               40T       61   79   77   67   284       $  4792.20
Rogckdak Fiujf       40T       69   69   68   78   284       $  4792.20
Xorquo Pzr Cym       40T       71   72   77   64   284       $  4792.20
Uhapgfk*             46        72   73   74   67   286
Urhcbmz Y            46T       61   80   79   66   286       $  4674.52
Znluiyfsu            46T       74   64   70   78   286       $  4674.52
Bmdypu*              49        62   69   80   76   287
Zlifxcd*             49        77   63   79   68   287
Mctltuvu             51T       67   68   73   80   288       $  4504.83
Suboed               51T       64   81   60   83   288       $  4504.83
Eicbnlon*            53        60   67   83   79   289
Twhpvg*              53        74   73   82   60   289
Uacbpqj Kndf         53        62   70   80   77   289       $  4428.48
Htaapz B             56T       69   67   76   79   291       $  4396.88
Twltmv T             56T       64   79   65   83   291       $  4396.88
Ggxbpv Lgh           58T       60   80   70   82   292       $  4186.07
Hmhakop Rycx Gt      58T       71   72   79   70   292       $  4186.07
Izaabbwt*            58        71   76   73   72   292
Nviajs               58T       77   69   69   77   292       $  4186.07
Bigfgm               62T       65   76   72   81   294       $  3405.49
Guznwmym S B         62T       68   65   81   80   294       $  3405.49
Wkqubqt*             62        69   77   83   65   294
Pgemjayfwqcat*       65        65   79   68   83   295
Uvjvah               65        62   82   71   80   295       $  3209.80
Pwzvah               67        75   71   70   81   297       $  3203.07
Ydypvmxhuk           68        68   78   72   80   298       $  3090.15
Xldpki               69        64   83   79   75   301       $  3058.71
Rugawc*              70        81   66   73   83   303
Ivqpdznvuj           71        75   68   81   80   304       $  3042.99
Hiddqm                         69   62   72        DQ
Nmmyxdfaq Qj Mxml              68   71             DQ

I finally got to match my output with the output when I updated my code, but I still got a WA. Anymore thoughts? I'm thinking it has something to do with how I determine ties, but I'm not so sure.

Code: Select all

Accepted
Last edited by r2ro on Sun Sep 28, 2014 2:50 pm, edited 1 time in total.

brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: 207 - PGA Tour Prize Money

Post by brianfry713 » Fri Sep 12, 2014 1:40 am

http://www.udebug.com/UVa/207
Click "Random Input", "Go!"
Check input and AC output for thousands of problems on uDebug!

Post Reply

Return to “Volume 2 (200-299)”