Reference no: EM13158487
Chef loves circular cakes. He divides them into smaller
pieces and sells them. You are to help him in this work.
Today Chef has cooked the brand new circular cake.
To split the cake Chef can make several (possibly, zero) cuts.
Each cut should be a straight line going from the center of the cake
to its border.
Also, the angle between any two cuts should have positive integer value
(Chef measure all the angles in degrees).
Chef consider two pieces of cake equal if the appropriate angles are equal.
The picture contains two distinct pieces, and two cuts. Red part on the image shows one piece. The appropriate angle is AOB.
Chef gives to you an integer N, denoting the number of pieces Chef wants to make. You need to answer the following questions:
- Is it possible to make exactly N equal pieces from the whole cake?
- Is it possible to make exactly N pieces from the whole cake?
- Is it possible to make exactly N pieces from the whole cake, in such a way that no two of them are equal?
Input
irst line contains a single integer T denoting the number of test cases. Each of the following T lines contain a single integer N denoting the number of pieces Chef wants to make.
Output
For each test case, output one line containing 3 space separated characters.
Above, we defined the 3 questions that Chef will ask. Output 'y' for yes or 'n' for no (quotes for clarity) for each of those questions.
Answers for 3 questions (in the order above) must be space separated on the same line.
Constraints
- 1 ? T ? 10000
- 1 ? N ? 10000
Example
Input:
2
4
7
Output:
y y y
n y y
Acrylic acid soluble as acetic acid in water
: A trayed column is used to recover acrylic acid and acetic acid from a dilute gas stream by absorption in water. At the same vapor concentration, acrylic acid is about two times as soluble as acetic acid in water
|
What was the mass % of d2o in the original sample of water
: A 1.00 g sample of enriched water, a mixture of H2O and D2O, reacted completely with Cl2 to give a mixture of HCl and DCl. The HCl and DCl were then dissolved in pure H2O to make a 1.00 L solution
|
What are the drawbacks of your changes?
: Describe what changes could be made to an operating to break the conditions of non-preemption and hold and wait for deadlock prevention. What are the drawbacks of your changes?
|
Explain is n methyl propanamine a primary amine
: Is 2-methyl-2-propanamine (C4H11N) a primary amine, secondary amine, tertiary amine, or quaternary ammonium salt? 2) Is N-methyl-2-propanamine a primary amine
|
Chef loves circular cakes
: Chef loves circular cakes. He divides them into smaller pieces and sells them. You are to help him in this work. Today Chef has cooked the brand new circular cake
|
Potential for misuse or embarrassment
: Using the data classification scheme presented in this chapter, identify and classify the information contained in your personal computer or personal digital assistant. Based on the potential for misuse or embarrassment, what information would be ..
|
Programming in mpi
: What advantages are gained by programming in MPI as opposed to using threads? Is there a disadvantage to MPI? What?
|
Long measures of performance
: Your company has jobs that are highly interelated and strategic in focus. You want to provide a pay for performance incentive with relatively long measures of performance. The best option would be to design a:
|
Carrying value of bonds-effective interest amortization
: A company issues $20,000,000, 7.8%, 20-year bonds to yield 8% on January 1, 2010. Interest is paid on June 30 and December 31. The proceeds from the bonds are $19,604,145. Using effective-interest amortization, what will the carrying value of the ..
|