|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
New scoring question
Suppose we have the following words in the wordlist:
ABA BAB ABAB BABA ABABA BABAB ABABAB how much does ABABAB score ? JC |
|
#2
|
|||
|
|||
|
RE: New scoring question
ABA=1+3+1=5
BAB=3+1+3=7 ABAB=1+3+1+3=8 BABA=3+1+3+1=8 ABABA=1+3+1+3+1=9 BABAB=3+1+3+1+3=11 ABABAB=1+3+1+3+1+3=12 5*5+7*7+8*8+8*8+9*9+11*11+12*12= 25+49+64+64+81+121+144= 548 |
|
#3
|
|||
|
|||
|
RE: New scoring question
Wrong!
the words ABA, BAB and ABAB exist 2 times each in the word ABABAB. So the scor should be 548 + 25 + 49 + 64 = 686! |
|
#4
|
|||
|
|||
|
RE: New scoring question
Sorry about that....wasn't thinking clearly...
|
|
#5
|
|||
|
|||
|
RE: New scoring question
so the output of the program for the above example would be:
<html> <body> 686 10 ABABAB BABAB ABABA BABA ABAB ABAB BAB BAB ABA ABA </body> </html> ? or is it: <html> <body> 686 10 ABABAB </body> </html> ? |
|
#6
|
|||
|
|||
|
RE: New scoring question
The first way...you would need to show all the words...
|
|
#7
|
|||
|
|||
|
RE: New scoring question
I know it's too late for anything to be changed in the rules, but it would make much more sense to first print the words you found and then the number of them and the scor. Now we have to temporarily save the words and display them after the scor.
|
![]() |
| Viewing: Codewalkers Forums > PHP Contests > Older Contests > New scoring question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|