405103: GYM101793 B Pen spinning accident
Memory Limit:256 MB
Time Limit:1 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
B. Pen spinning accidenttime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output
See PDF statement in attachment.
ExamplesInput1 0 0Output
0 0 1
1 0 0
0 1 0
0 1 0
0 0 1
0.785398163397Input
1 0 0Output
0 0 1
1 0 0
0 1 0
0 1 0
0 0 -1
neverInput
0 0 0Output
1 0 0
0 1 0
0 0 1
0 1 0
-1 0 0
neverInput
1 0 0Output
-1 0 -1
-1 0 1
0 1 0
0 1 0
0 0 1
0.392699081699Input
0 0 1Output
0 -1 1
0 1 1
-1 0 -1
-1 0 0
0 -1 0
0.511669644114Input
0 -1 0Output
-1 0 0
0 0 -1
1 0 0
0 0 -1
0 1 0
0.785398163397