I’m stuck for about 10hours in this puzzle
I sorted the ships by fighters and cruisers then by damage then by hp then by armor
I made it so complicated I passed some tests and that made me happy
then I came here and found out that I need to find a formula and sort the ships depending on that formula.
a33hhhh how the hell could I think of thatttt ;(
Thank you. This comment helped tremendously
I know I am “late to the party” responding to this.
But I also had that. I had been rounding the ratio for simplicity, and when I removed the Round, it passed.
Hi, i passed all the test and all validator except the last one, and without indication from it, i don’t know how to correct that, someone know what they are expecting in the last validator ? or the entry to see if it’s like the test. Thanks
I’m not sure about what the similarities between the last test and the last validator are, but you may send me your code in private message and I’ll take a look at it if you want.
I don’t know where i can PM you here (not sure it’s possible), and don’t know who you are in the discord server ^^'. In addition i tried to change my formula from Math.ceil to round and floor, not working for all the test so it won’t works if i submit it, maybe it’s the rest of my formula who is “bad” but is working well in test because i’m lucky?
I’ve sent you a PM just now. Try sending me your code by replying there.
I use the same user name and profile icon in Discord.
Some may find the following additional case useful in debugging (especially the last validator “Tickle Wars”):
Input:
6
FIGHTER 123 21 1
CRUISER 443 31 1
FIGHTER 199 10 1
CRUISER 395 16 1
FIGHTER 599 47 1
CRUISER 228 8 1
Output:
1148