10785 - The Mad Numerologist

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

Moderator: Board moderators

Post Reply
abishek
Experienced poster
Posts: 131
Joined: Mon Dec 15, 2003 5:41 am

10785 - The Mad Numerologist

Post 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....
Last edited by abishek on Thu Dec 09, 2004 10:41 am, edited 1 time in total.
stubbscroll
Experienced poster
Posts: 151
Joined: Tue Nov 16, 2004 7:23 pm
Location: Norway
Contact:

Post 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.
abishek
Experienced poster
Posts: 131
Joined: Mon Dec 15, 2003 5:41 am

Post by abishek »

thx
Dreamer#1
Learning poster
Posts: 77
Joined: Tue Oct 07, 2003 10:07 pm

Post by Dreamer#1 »

got it :D
Last edited by Dreamer#1 on Thu Dec 09, 2004 12:18 pm, edited 1 time in total.
misof
A great helper
Posts: 430
Joined: Wed Jun 09, 2004 1:31 pm

Post by misof »

Because ABAJAJAJAJAJASASASASAS is a name with the same value, that is earlier in lexicographic order.
Larry
Guru
Posts: 647
Joined: Wed Jun 26, 2002 10:12 pm
Location: Hong Kong and New York City
Contact:

Post by Larry »

What's the answer for 200? I get:
ABABABABABACACACACACADADADADADAFAFAFAFAFAGEGEGEGEGEHEHEHEHEHEJEJEJEJEJEKEKEKEKEKELELILILILIMIMIMIMIMINININININIPIPIPOPOPOQOQOQOQOQOSOSOSOSOSOTOTOTOTOTOVOVOVOVUVUWUWUWUWUWUXUXUXUXUXUYUYUYUYUYUZUZUZUZUZ
I think I got all the cases, but still WA.. =(
abishek
Experienced poster
Posts: 131
Joined: Mon Dec 15, 2003 5:41 am

Post by abishek »

looks like you missed the letter 'R'
helmet
New poster
Posts: 31
Joined: Tue Mar 02, 2004 11:55 am

Post by helmet »

R comes only in n=202 case...

n=200 seems correct...
Just another brick in the wall...
Larry
Guru
Posts: 647
Joined: Wed Jun 26, 2002 10:12 pm
Location: Hong Kong and New York City
Contact:

Post by Larry »

AC now.. stupid mistake... printed out "case" instead of "Case"..
Post Reply

Return to “Volume 107 (10700-10799)”