S L LONEYProblem code: DSPC306 |
All submissions for this problem are available.
S L Loney
To match the requirements of the current IIT-JEE pattern, the publishers of Co-ordinate Geometry by S L Loney have decided to introduce new Multiple Choice Questions in the upcoming edition. A large number of new questions have been added but they want to verify the answers before publishing. So, they have decided to hire a Computer Programmer who will write programs to generate absolute results.
The one who solves the following problem in minimum time gets the Job:
“Rotate the line ax+by+c =0 through the angle a,b,c(TRIPLE Representation) about the point P(x,y). Output the Equation of the line after rotation.”
You need to output the coefficients of the new equation.
© Vishal Gupta
Input:
Input contains a number of test cases. Each test case consists of 4 lines.
First line contains 0 or 1. 0 implies anti-clock wise rotation and 1 implies clockwise rotation.
Second line contains the co-efficients a,b,c of the line ax+by+c=0
Third line contains the angle in the form of triple p,q,r.
Fourth line contains x,y (Integers), the co-ordinates of P.
Output:
Print co-efficients A,B,C of the line after rotation.
Sample Input:
0
2 3 -4
3 4 5
0 0
0
2 -1 1
4 3 5
0 0
Sample Output:
6 -17 20
11 2 5
| Author: | ganesha |
| Date Added: | 28-03-2010 |
| Time Limit: | 1 sec |
| Source Limit: | 50000 Bytes |
| Languages: | ADA, ASM, BASH, BF, C, C99 strict, CAML, CLOJ, CLPS, CPP 4.0.0-8, CPP 4.3.2, CS2, D, ERL, F#, FORT, GO, HASK, ICK, ICON, JAR, JAVA, JS, LISP clisp, LISP sbcl, LUA, NEM, NICE, PAS fpc, PAS gpc, PERL, PERL6, PHP, PIKE, PRLG, PYTH, PYTH 3.1.2, RUBY, SCALA, SCM guile, SCM qobi, ST, TEXT, WSPC |
Comments

Fetching successful submissions

@LeftBrained & Others Please
@LeftBrained & Others
Please register at the Tech-Days website. link given in Guidelines in the main contest page. Many of you have not registered.
i got AC on this problem.
i got AC on this problem. Now, my code's output is TLE.
Without telling any information , why did you change your test data.
Atleast you should tell us ,whenever you change test data.
@Surendra Check your mail for
@Surendra
Check your mail for Reply!