Page 1 of 1

10785 - The Mad Numerologist

Posted: Thu Dec 09, 2004 6:56 am
by abishek
well in this problem i am getting WA can some one give me the output for the following test case :-)
22
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
plz send me a PM or we can delete the post after i get AC:-). Note: i have no intentions to copy paste the output into my program and send. I just want to test it out for all possible input cases.
thisis what my WA program outputs
Case 1: A
Case 2: AJ
Case 3: AJA
Case 4: AJAJ
Case 5: AJAJA
Case 6: AJAJAJ
Case 7: AJAJAJA
Case 8: AJAJAJAJ
Case 9: AJAJAJAJA
Case 10: AJAJAJAJAJ
Case 11: AJAJAJAJAJA
Case 12: AJAJAJAJAJAS
Case 13: AJAJAJAJAJASA
Case 14: AJAJAJAJAJASAS
Case 15: AJAJAJAJAJASASA
Case 16: AJAJAJAJAJASASAS
Case 17: AJAJAJAJAJASASASA
Case 18: AJAJAJAJAJASASASAS
Case 19: AJAJAJAJAJASASASASA
Case 20: AJAJAJAJAJASASASASAS
Case 21: AJAJAJAJAJASASASASASA
Case 22: AJAJAJAJAJASASASASASAB
edit after the post below....

Posted: Thu Dec 09, 2004 7:49 am
by stubbscroll
Problem statement says:

Code: Select all

Following the rules and limitations above the name must be kept lexicographically smallest. Please note that the numerologists first priority is to keep the vowel and consonant value minimum and then to make the name lexicographically smallest.
Your answer for case 22 is wrong.

Posted: Thu Dec 09, 2004 10:41 am
by abishek
thx

Posted: Thu Dec 09, 2004 12:06 pm
by Dreamer#1
got it :D

Posted: Thu Dec 09, 2004 12:12 pm
by misof
Because ABAJAJAJAJAJASASASASAS is a name with the same value, that is earlier in lexicographic order.

Posted: Fri Dec 10, 2004 1:46 am
by Larry
What's the answer for 200? I get:
ABABABABABACACACACACADADADADADAFAFAFAFAFAGEGEGEGEGEHEHEHEHEHEJEJEJEJEJEKEKEKEKEKELELILILILIMIMIMIMIMINININININIPIPIPOPOPOQOQOQOQOQOSOSOSOSOSOTOTOTOTOTOVOVOVOVUVUWUWUWUWUWUXUXUXUXUXUYUYUYUYUYUZUZUZUZUZ
I think I got all the cases, but still WA.. =(

Posted: Fri Dec 10, 2004 8:30 am
by abishek
looks like you missed the letter 'R'

Posted: Fri Dec 10, 2004 1:02 pm
by helmet
R comes only in n=202 case...

n=200 seems correct...

Posted: Fri Dec 10, 2004 2:14 pm
by Larry
AC now.. stupid mistake... printed out "case" instead of "Case"..