S L LONEY
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:
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 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
Print co-efficients A,B,C of the line after
2 3 -4
3 4 5
2 -1 1
4 3 5
6 -17 20
11 2 5
|Time Limit:||1 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, CPP14, JAVA, PYTH, PYTH 3.6, PYPY, CS2, PAS fpc, PAS gpc, RUBY, PHP, GO, NODEJS, HASK, rust, SCALA, swift, D, PERL, FORT, WSPC, ADA, CAML, ICK, BF, ASM, CLPS, PRLG, ICON, SCM qobi, PIKE, ST, NICE, LUA, BASH, NEM, LISP sbcl, LISP clisp, SCM guile, JS, ERL, SQL, kotlin, PERL6, TEXT, SCM chicken, PYP3, CLOJ, R, COB, FS|
Fetching successful submissions
If you are still having problems, see a sample solution here.