English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Alice while chasing Mr. White rabbit in the wonderland reaches the Kingdom of hearts. There she meets a foul tempered lady, the Queen of hearts. The Queen herself was in a big trouble.
Queen said, "You little girl, how dare you come into my kingdom?" Alice said, "I am really sorry, I missed my way."
Queen: "Only the sorry will not do. I will give you a task and if you fail to do it, you will be beheaded."
The task is: The Queen has a few soldiers, each with a label on his head. The Queen also has three forts, now she needs to send these soldiers to these three forts. But there is a problem. Whenever two soldiers in a fort exist such that the sum of labels of two is equal to five times the label of any soldier in the fort (which might include the two soldiers whose labels are being added), they acquire a special power Tijihba. With this special power Tijihba, they will overthrow the Queen.

2007-02-02 22:29:18 · 9 answers · asked by dont_trust_me 5 in Entertainment & Music Jokes & Riddles

Now, The Queen gives Alice the number of her soldiers and asks her to divide them into three groups, each group to be sent to a different fort such that nobody gets the special power of Tijihba. Remember, if there are n soldiers, they are labeled from 1 to n and each one of them has a unique label. The queen knows that for any 1..n labels of soldiers, there is a way to divide them so that they would not be able to acquire the power of Tijihba.
Input
The first line gives the number of test cases, N. Each test case consists of a single positive integer 'n' on a new line. This means you have all soldiers labeled from 1 to n.
Output
For each test case,
The first line gives the number of soldiers, n.
The next line gives the number of soldiers in each of the three forts, 'a', 'b', 'c'.
The next line gives 'a' integers, which are the labels of the soldiers in fort 1.
The next line gives 'b' integers, which are the labels of the soldiers in fort 2.

2007-02-02 22:30:21 · update #1

The next line gives 'c' integers, which are the labels of the soldiers in fort 3.
Sample Input:
2
5
10

Sample Output:
5
1 3 1
1
3 4 5
2
10
6 3 1
1 6 7 8 9 10
3 4 5
2

2007-02-02 22:32:21 · update #2

9 answers

I am gonna go with my gut here:
The answer to your riddle is "given."

2007-02-02 22:35:51 · answer #1 · answered by The Gay Argentian Seal 5 · 1 1

i hope this isn't confusing:
group consecutive integers together (the forts with more soldiers have the highest numbers). This way, when u multiply any of the numbers in that group by 5, the smallest product is much higher than the greatest sum that you would get in that group.

the smallest integer (1) in the second group (the one with 10 soldiers) is placed with the fort that has the largest integers so that if you multiply by 1 by 5, you would get a product that is smaller than the smallest sum in that group (which is 1 + 6= 7).

i think thats how you do it.....

2007-02-07 19:37:47 · answer #2 · answered by Anonymous · 0 0

Answer to the 1st... Use a magnet. 2.) Only TIME can wear stone with the continuous drip of a stream,cripple things as old as trees,has no beginning,and is involved in the world's affairs. 3.)Because he would always believe you won't pay back and when you pay he believes it's a trap and won't collect it. 4.)I'll rate it a 100%,most ppl don't think this much to come up with a riddle but u did...kudos 5.) It was a bit a complex at first . thanx

2016-05-23 22:44:24 · answer #3 · answered by Ardis 4 · 0 0

a good riddle should be short and sweet and easy to understand. urs is way too long.

2007-02-10 03:49:33 · answer #4 · answered by Anonymous · 0 0

I'm sorry I lost my way!

2007-02-02 22:36:21 · answer #5 · answered by Anonymous · 0 0

omg!!!! i am lost in wonderland...

u call this a simple riddle?

2007-02-02 22:44:53 · answer #6 · answered by Anonymous · 0 0

<----- Runs from the room screaming....yanking hair out.......


OMG...got me on this one....I am lost in the world of mathematics.............lol

2007-02-02 22:44:04 · answer #7 · answered by mysticfairy74 5 · 0 0

HOW WILL U GIVE ME THE ANSWER OF THIS
PL. I NEED THE ANSWER PLEEEEEEEEEEEEEEESE

2007-02-09 21:01:18 · answer #8 · answered by xxsanxx 5 · 0 0

this was hard so i lost my answer

2007-02-08 16:11:39 · answer #9 · answered by ? 3 · 0 0

fedest.com, questions and answers